Home
last modified time | relevance | path

Searched refs:asn1Object (Results 1 – 15 of 15) sorted by relevance

/external/python/pyasn1-modules/tests/
Dtest_rfc2459.py49 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
52 assert asn1Object.prettyPrint()
53 assert der_encoder.encode(asn1Object) == substrate
59asn1Object, 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
95asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True)
[all …]
Dtest_rfc2315.py149 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
152 assert asn1Object.prettyPrint()
153 assert der_encoder.encode(asn1Object) == substrate
159asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True)
162 assert asn1Object.prettyPrint()
163 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc2560.py35 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
Dtest_rfc5280.py49 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
Dtest_rfc5208.py41 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
Dtest_rfc5652.py76 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)
Dtest_rfc2437.py40 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
43 assert asn1Object.prettyPrint()
44 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc2511.py42 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
45 assert asn1Object.prettyPrint()
46 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc4210.py122 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
125 assert asn1Object.prettyPrint()
126 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc2314.py50 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/
Ddecoder.py42 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 …]
Dencoder.py444 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/
Dnamedtype.py42 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/
Dencoder.py123 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/
Ddecoder.py36 … asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
59 … asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)