/external/python/pyasn1-modules/tests/ |
D | test_rfc2459.py | 49 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 52 assert asn1Object.prettyPrint() 53 assert der_encoder.encode(asn1Object) == substrate 59 … asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True) 62 assert asn1Object.prettyPrint() 63 assert der_encoder.encode(asn1Object) == substrate 85 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 88 assert asn1Object.prettyPrint() 89 assert der_encoder.encode(asn1Object) == substrate 95 … asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True) [all …]
|
D | test_rfc2315.py | 149 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 152 assert asn1Object.prettyPrint() 153 assert der_encoder.encode(asn1Object) == substrate 159 … asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True) 162 assert asn1Object.prettyPrint() 163 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc2560.py | 35 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 38 assert asn1Object.prettyPrint() 39 assert der_encoder.encode(asn1Object) == substrate 74 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 77 assert asn1Object.prettyPrint() 78 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc5280.py | 49 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 52 assert asn1Object.prettyPrint() 53 assert der_encoder.encode(asn1Object) == substrate 75 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 78 assert asn1Object.prettyPrint() 79 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc5208.py | 41 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 44 assert asn1Object.prettyPrint() 45 assert der_encoder.encode(asn1Object) == substrate 67 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 70 assert asn1Object.prettyPrint() 71 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc5652.py | 76 asn1Object, rest = der_decoder.decode( 81 assert asn1Object.prettyPrint() 82 assert der_encoder.encode(asn1Object) == substrate 84 substrate = getNextSubstrate[next_layer](asn1Object) 85 next_layer = getNextLayer[next_layer](asn1Object)
|
D | test_rfc2437.py | 40 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 43 assert asn1Object.prettyPrint() 44 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc2511.py | 42 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 45 assert asn1Object.prettyPrint() 46 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc4210.py | 122 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 125 assert asn1Object.prettyPrint() 126 assert der_encoder.encode(asn1Object) == substrate
|
D | test_rfc2314.py | 50 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec) 53 assert asn1Object.prettyPrint() 54 assert der_encoder.encode(asn1Object) == substrate
|
/external/python/pyasn1/pyasn1/codec/ber/ |
D | decoder.py | 42 def substrateCollector(asn1Object, substrate, length): argument 255 asn1Object = self._createComponent(asn1Spec, tagSet, noValue, **options) 256 return substrateFun(asn1Object, substrate, length) 441 def _getComponentTagMap(self, asn1Object, idx): argument 444 def _getComponentPositionByType(self, asn1Object, tagSet, idx): argument 466 asn1Object = protoComponent.clone( 473 asn1Object.setComponentByPosition( 479 return asn1Object, substrate 492 asn1Object = asn1Spec.clone() 494 asn1Object = self.protoComponent.clone(tagSet=tagSet) [all …]
|
D | encoder.py | 444 if namedType.isDefaulted and component == namedType.asn1Object: 454 wrapType = namedType.asn1Object 473 if namedType.isDefaulted and component == namedType.asn1Object: 483 wrapType = namedType.asn1Object
|
/external/python/pyasn1/pyasn1/type/ |
D | namedtype.py | 42 def __init__(self, name, asn1Object, openType=None): argument 44 self.__type = asn1Object 45 self.__nameAndType = name, asn1Object 49 representation = '%s=%r' % (self.name, self.asn1Object) 88 def asn1Object(self): member in NamedType 101 return self.asn1Object 171 self.__values = tuple([namedType.asn1Object for namedType in self.__namedTypes]) 172 … self.__items = tuple([(namedType.name, namedType.asn1Object) for namedType in self.__namedTypes]) 246 tagMap = namedType.asn1Object.tagMap 300 return self.__namedTypes[idx].asn1Object [all …]
|
/external/python/pyasn1/pyasn1/codec/cer/ |
D | encoder.py | 123 if namedType.isDefaulted and component == namedType.asn1Object: 146 if namedType.isDefaulted and component == namedType.asn1Object: 162 wrapType = namedType.asn1Object
|
/external/python/pyasn1/pyasn1/codec/native/ |
D | decoder.py | 36 … asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options) 59 … asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
|