Home
last modified time | relevance | path

Searched refs:substrate (Results 1 – 25 of 127) sorted by relevance

123456

/external/python/pyasn1-modules/tests/
Dtest_rfc4055.py33 substrate = pem.readBase64fromText(self.pss_default_pem_text)
34 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
38 assert der_encoder.encode(asn1Object) == substrate
39 assert substrate == der_encoder.encode(asn1Object)
42 substrate = pem.readBase64fromText(self.pss_default_pem_text)
43 asn1Object, rest = der_decoder.decode(substrate,
48 assert der_encoder.encode(asn1Object) == substrate
59 substrate = pem.readBase64fromText(self.pss_sha512_pem_text)
60 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
64 assert der_encoder.encode(asn1Object) == substrate
[all …]
Dtest_rfc2459.py47 substrate = pem.readBase64fromText(self.pem_text)
49 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
53 assert der_encoder.encode(asn1Object) == substrate
57 substrate = pem.readBase64fromText(self.pem_text)
59 … asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec, decodeOpenTypes=True)
63 assert der_encoder.encode(asn1Object) == substrate
83 substrate = pem.readBase64fromText(self.pem_text)
85 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
89 assert der_encoder.encode(asn1Object) == substrate
93 substrate = pem.readBase64fromText(self.pem_text)
[all …]
Dtest_rfc3279.py60 substrate = pem.readBase64fromText(self.rsa_cert_pem_text)
61 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
64 assert der_encode(asn1Object) == substrate
80 substrate = pem.readBase64fromText(self.rsa_cert_pem_text)
81 asn1Object, rest = der_decode(substrate,
86 assert der_encode(asn1Object) == substrate
121 substrate = pem.readBase64fromText(self.ec_cert_pem_text)
122 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
125 assert der_encode(asn1Object) == substrate
139 substrate = pem.readBase64fromText(self.ec_cert_pem_text)
[all …]
Dtest_rfc8419.py31 substrate = pem.readBase64fromText(self.alg_id_1_pem_text)
32 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
37 assert der_encode(asn1Object) == substrate
47 substrate = pem.readBase64fromText(self.alg_id_2_pem_text)
48 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
53 assert der_encode(asn1Object) == substrate
63 substrate = pem.readBase64fromText(self.alg_id_3_pem_text)
64 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
69 assert der_encode(asn1Object) == substrate
79 substrate = pem.readBase64fromText(self.alg_id_4_pem_text)
[all …]
Dtest_rfc5280.py49 substrate = pem.readBase64fromText(self.pem_text)
51 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
55 assert der_encode(asn1Object) == substrate
75 substrate = pem.readBase64fromText(self.pem_text)
77 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
81 assert der_encode(asn1Object) == substrate
109 substrate = pem.readBase64fromText(self.pem_text)
117 asn1Object, rest = der_decode(substrate,
123 assert der_encode(asn1Object) == substrate
157 substrate = pem.readBase64fromText(self.pem_text)
[all …]
Dtest_rfc3560.py31 substrate = pem.readBase64fromText(self.oaep_default_pem_text)
32 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
36 assert der_encoder.encode(asn1Object) == substrate
37 assert substrate == der_encoder.encode(asn1Object)
47 substrate = pem.readBase64fromText(self.oaep_sha256_pem_text)
48 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
52 assert der_encoder.encode(asn1Object) == substrate
53 assert substrate == der_encoder.encode(asn1Object)
63 substrate = pem.readBase64fromText(self.oaep_full_pem_text)
64 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
[all …]
Dtest_rfc4073.py74 def test_layer(substrate, content_type): argument
75 asn1Object, rest = der_decode(substrate, asn1Spec=layers[content_type])
78 assert der_encode(asn1Object) == substrate
102 substrate = pem.readBase64fromText(self.pem_text)
107 asn1Object = test_layer(substrate, this_layer)
109 substrate = ci['content']
112 asn1Object = test_layer(substrate, this_layer)
113 substrate = getNextSubstrate[this_layer](asn1Object)
116 asn1Object = test_layer(substrate, this_layer)
117 substrate = getNextSubstrate[this_layer](asn1Object)
[all …]
Dtest_rfc7191.py65 substrate = pem.readBase64fromText(self.message1_pem_text)
66 asn1Object, rest = der_decode (substrate, asn1Spec=self.asn1Spec)
69 assert der_encode(asn1Object) == substrate
91 substrate = pem.readBase64fromText(self.message1_pem_text)
92 asn1Object, rest = der_decode (substrate,
97 assert der_encode(asn1Object) == substrate
140 substrate = pem.readBase64fromText(self.message2_pem_text)
141 asn1Object, rest = der_decode (substrate, asn1Spec=self.asn1Spec)
144 assert der_encode(asn1Object) == substrate
166 substrate = pem.readBase64fromText(self.message2_pem_text)
[all …]
Dtest_rfc6482.py60 substrate = pem.readBase64fromText(self.roa_pem_text)
79 asn1Object, rest = der_decode(substrate, asn1Spec=layers[next_layer])
82 assert der_encode(asn1Object) == substrate
84 substrate = getNextSubstrate[next_layer](asn1Object)
91 substrate = pem.readBase64fromText(self.roa_pem_text)
92 asn1Object, rest = der_decode(substrate,
97 assert der_encode(asn1Object) == substrate
100 substrate = asn1Object['content']['encapContentInfo']['eContent']
102 asn1Object, rest = der_decode(substrate,
107 assert der_encode(asn1Object) == substrate
Dtest_rfc6486.py62 substrate = pem.readBase64fromText(self.manifest_pem_text)
81 asn1Object, rest = der_decode(substrate, asn1Spec=layers[next_layer])
84 assert der_encode(asn1Object) == substrate
86 substrate = getNextSubstrate[next_layer](asn1Object)
94 substrate = pem.readBase64fromText(self.manifest_pem_text)
95 asn1Object, rest = der_decode(substrate,
100 assert der_encode(asn1Object) == substrate
103 substrate = asn1Object['content']['encapContentInfo']['eContent']
105 asn1Object, rest = der_decode(substrate,
110 assert der_encode(asn1Object) == substrate
Dtest_rfc3709.py46 substrate = pem.readBase64fromText(self.pem_text)
47 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
50 assert der_encode(asn1Object) == substrate
69 substrate = pem.readBase64fromText(self.pem_text)
70 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
73 assert der_encode(asn1Object) == substrate
139 substrate = pem.readBase64fromText(self.pem_text)
140 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
143 assert der_encode(asn1Object) == substrate
162 substrate = pem.readBase64fromText(self.pem_text)
[all …]
Dtest_rfc5934.py136 substrate = pem.readBase64fromText(self.tsr_pem_text)
159 asn1Object, rest = der_decode(substrate, asn1Spec=layers[next_layer])
162 assert der_encode(asn1Object) == substrate
164 substrate = getNextSubstrate[next_layer](asn1Object)
168 substrate = pem.readBase64fromText(self.tsr_pem_text)
169 asn1Object, rest = der_decode(substrate,
174 assert der_encode(asn1Object) == substrate
237 substrate = pem.readBase64fromText(self.tau_pem_text)
260 asn1Object, rest = der_decode(substrate, asn1Spec=layers[next_layer])
263 assert der_encode(asn1Object) == substrate
[all …]
Dtest_rfc3565.py32 substrate = pem.readBase64fromText(self.kw_alg_id_pem_text)
33 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
37 assert der_encoder.encode(asn1Object) == substrate
47 substrate = pem.readBase64fromText(self.aes_alg_id_pem_text)
48 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
53 assert der_encoder.encode(asn1Object) == substrate
56 substrate = pem.readBase64fromText(self.aes_alg_id_pem_text)
57 asn1Object, rest = der_decoder.decode(substrate,
65 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc6960.py38 substrate = pem.readBase64fromText(self.ocsp_req_pem_text)
39 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
42 assert der_encode(asn1Object) == substrate
59 substrate = pem.readBase64fromText(self.ocsp_req_pem_text)
60 asn1Object, rest = der_decode(substrate,
65 assert der_encode(asn1Object) == substrate
104 substrate = pem.readBase64fromText(self.ocsp_resp_pem_text)
105 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
108 assert der_encode(asn1Object) == substrate
133 substrate = pem.readBase64fromText(self.ocsp_resp_pem_text)
[all …]
Dtest_rfc8619.py30 substrate = pem.readBase64fromText(self.alg_id_1_pem_text)
32 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
36 assert der_encoder.encode(asn1Object) == substrate
49 substrate = pem.readBase64fromText(self.alg_id_1_pem_text)
51 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
55 assert der_encoder.encode(asn1Object) == substrate
68 substrate = pem.readBase64fromText(self.alg_id_1_pem_text)
70 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
74 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc8226.py31 substrate = pem.readBase64fromText(self.jwtcc_pem_text)
32 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
35 assert der_encoder.encode(asn1Object) == substrate
45 substrate = pem.readBase64fromText(self.tnal_pem_text)
46 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
49 assert der_encoder.encode(asn1Object) == substrate
74 substrate = pem.readBase64fromText(self.cert_pem_text)
75 asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
78 assert der_encoder.encode(asn1Object) == substrate
Dtest_rfc5084.py32 substrate = pem.readBase64fromText(self.ccm_pem_text)
33 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
36 assert der_encode(asn1Object) == substrate
46 substrate = pem.readBase64fromText(self.gcm_pem_text)
47 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
50 assert der_encode(asn1Object) == substrate
97 substrate = pem.readBase64fromText(self.rfc8591_pem_pext)
98 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
101 assert der_encode(asn1Object) == substrate
Dtest_rfc5755.py52 substrate = pem.readBase64fromText(self.pem_text)
53 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
56 assert der_encode(asn1Object) == substrate
72 substrate = pem.readBase64fromText(self.pem_text)
73 asn1Object, rest = der_decode(substrate,
78 assert der_encode(asn1Object) == substrate
119 substrate = pem.readBase64fromText(self.cert_pem_text)
120 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
123 assert der_encode(asn1Object) == substrate
152 substrate = pem.readBase64fromText(self.cert_pem_text)
[all …]
Dtest_rfc8017.py41 substrate = pem.readBase64fromText(self.smime_capabilities_pem_text)
42 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
45 assert der_encode(asn1Object) == substrate
62 substrate = pem.readBase64fromText(self.smime_capabilities_pem_text)
63 asn1Object, rest = der_decode(substrate,
68 assert der_encode(asn1Object) == substrate
111 substrate = pem.readBase64fromText(self.pem_text)
112 asn1Object, rest = der_decode(substrate, asn1Spec=self.asn1Spec)
115 assert der_encode(asn1Object) == substrate
Dtest_rfc6664.py44 substrate = pem.readBase64fromText(self.smime_capabilities_pem_text)
45 asn1Object, rest = der_decode (substrate, asn1Spec=self.asn1Spec)
48 assert der_encode(asn1Object) == substrate
53 substrate = cap['parameters']
54 cap_p, rest = der_decode (substrate,
58 assert der_encode(cap_p) == substrate
64 substrate = pem.readBase64fromText(self.smime_capabilities_pem_text)
65 asn1Object, rest = der_decode(substrate,
70 assert der_encode(asn1Object) == substrate
/external/python/pyasn1/pyasn1/codec/ber/
Ddecoder.py29 def valueDecoder(self, substrate, asn1Spec, argument
35 def indefLenValueDecoder(self, substrate, asn1Spec, argument
44 def substrateCollector(asn1Object, substrate, length): argument
45 return substrate[:length], substrate[length:]
61 def valueDecoder(self, substrate, asn1Spec, argument
68 substrate, length
71 head, tail = substrate[:length], substrate[length:]
81 def indefLenValueDecoder(self, substrate, asn1Spec, argument
88 substrate, length
91 value, substrate = decodeFun(substrate, asn1Spec, tagSet, length, **options)
[all …]
Dencoder.py43 substrate = tagId & 0x7f,
48 substrate = (0x80 | (tagId & 0x7f),) + substrate
51 return (encodedTag | 0x1F,) + substrate
61 substrate = ()
63 substrate = (length & 0xff,) + substrate
66 substrateLen = len(substrate)
71 return (0x80 | substrateLen,) + substrate
85 substrate, isConstructed, isOctets = self.encodeValue(
88 return substrate
92 substrate = null
[all …]
/external/python/pyasn1-modules/tools/
Dcrldump.py30 …idx, substrate = pem.readPemBlocksFromFile(sys.stdin, ('-----BEGIN X509 CRL-----', '-----END X509 … variable
31 if not substrate:
34 key, rest = decoder.decode(substrate, asn1Spec=asn1Spec)
37 substrate = substrate[:-len(rest)] variable
41 assert encoder.encode(key) == substrate, 'pkcs8 recode fails'
Dpkcs10dump.py29 idx, substrate = pem.readPemBlocksFromFile( variable
33 if not substrate:
36 cert, rest = decoder.decode(substrate, asn1Spec=certType)
39 substrate = substrate[:-len(rest)] variable
43 assert encoder.encode(cert) == substrate, 'cert recode fails'
Dx509dump-rfc5280.py32 idx, substrate = pem.readPemBlocksFromFile( variable
36 if not substrate:
39 cert, rest = decoder.decode(substrate, asn1Spec=certType)
42 substrate = substrate[:-len(rest)] variable
46 assert encoder.encode(cert) == substrate, 'cert recode fails'

123456