Lines Matching refs:asn1Object
32 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
34 assert asn1Object.prettyPrint()
35 assert asn1Object['algorithm'] == rfc8419.id_Ed25519
36 assert not asn1Object['parameters'].isValue
37 assert der_encode(asn1Object) == substrate
48 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
50 assert asn1Object.prettyPrint()
51 assert asn1Object['algorithm'] == rfc8419.id_Ed448
52 assert not asn1Object['parameters'].isValue
53 assert der_encode(asn1Object) == substrate
64 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
66 assert asn1Object.prettyPrint()
67 assert asn1Object['algorithm'] == rfc8419.id_sha512
68 assert not asn1Object['parameters'].isValue
69 assert der_encode(asn1Object) == substrate
80 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
82 assert asn1Object.prettyPrint()
83 assert asn1Object['algorithm'] == rfc8419.id_shake256
84 assert not asn1Object['parameters'].isValue
85 assert der_encode(asn1Object) == substrate
96 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
98 assert asn1Object.prettyPrint()
99 assert asn1Object['algorithm'] == rfc8419.id_shake256_len
100 assert asn1Object['parameters'].isValue
101 assert der_encode(asn1Object) == substrate
103 param, rest = der_decode(asn1Object['parameters'],
104 asn1Spec=rfc5280.algorithmIdentifierMap[asn1Object['algorithm']])
107 assert der_encode(param) == asn1Object['parameters']
112 asn1Object, rest = der_decode(substrate,
116 assert asn1Object.prettyPrint()
117 assert asn1Object['algorithm'] == rfc8419.id_shake256_len
118 assert asn1Object['parameters'] == 512
119 assert der_encode(asn1Object) == substrate