Home
last modified time | relevance | path

Searched refs:public_bytes (Results 1 – 25 of 43) sorted by relevance

12

/external/python/cryptography/tests/hazmat/primitives/
Dtest_x25519.py104 key.public_bytes()
109 key.public_bytes(None, serialization.PublicFormat.Raw)
111 key.public_bytes(serialization.Encoding.Raw)
140 def test_pub_priv_bytes_raw(self, private_bytes, public_bytes, backend): argument
147 assert private_key.public_key().public_bytes(
149 ) == public_bytes
150 public_key = X25519PublicKey.from_public_bytes(public_bytes)
151 assert public_key.public_bytes(
153 ) == public_bytes
205 key.public_bytes(
[all …]
Dtest_x448.py110 def test_pub_priv_bytes_raw(self, private_bytes, public_bytes, backend): argument
117 assert private_key.public_key().public_bytes(
119 ) == public_bytes
120 public_key = X448PublicKey.from_public_bytes(public_bytes)
121 assert public_key.public_bytes(
123 ) == public_bytes
215 key.public_bytes(
221 key.public_bytes(
227 key.public_bytes(
Dtest_ec.py919 pem = public.public_bytes(
955 serialized = key.public_bytes(
972 ssh_bytes = key.public_bytes(
983 key.public_bytes(
999 key.public_bytes(
1030 key.public_bytes(encoding, fmt)
1043 key.public_bytes(serialization.Encoding.PEM, "invalidformat")
1056 key.public_bytes(
1156 key.public_bytes(
1161 assert key.public_bytes(
[all …]
Dtest_dsa.py921 serialized = key.public_bytes(
933 ssh_bytes = key.public_bytes(
952 key.public_bytes(
960 key.public_bytes(serialization.Encoding.PEM, "invalidformat")
965 key.public_bytes(
994 key.public_bytes(encoding, fmt)
Dtest_dh.py604 serialized = key.public_bytes(
646 serialized = pub_key.public_bytes(
700 key.public_bytes(
709 key.public_bytes(
851 key.public_bytes(encoding, fmt)
Dtest_rsa.py2255 serialized = key.public_bytes(encoding, format)
2265 ssh_bytes = key.public_bytes(
2276 key.public_bytes(
2280 key.public_bytes(
2284 key.public_bytes(
2289 key.public_bytes(
2297 key.public_bytes("notencoding", serialization.PublicFormat.PKCS1)
2302 key.public_bytes(serialization.Encoding.PEM, "invalidformat")
2329 key.public_bytes(encoding, fmt)
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dx509.py46 return hash(self.public_bytes(serialization.Encoding.DER))
50 h.update(self.public_bytes(serialization.Encoding.DER))
163 def public_bytes(self, encoding): member in _Certificate
324 def public_bytes(self, encoding): member in _CertificateRevocationList
397 self_bytes = self.public_bytes(serialization.Encoding.DER)
398 other_bytes = other.public_bytes(serialization.Encoding.DER)
405 return hash(self.public_bytes(serialization.Encoding.DER))
452 def public_bytes(self, encoding): member in _CertificateSigningRequest
Dx448.py23 def public_bytes(self, encoding, format): member in _X448PublicKey
Dx25519.py26 def public_bytes(self, encoding=None, format=None): member in _X25519PublicKey
Docsp.py322 def public_bytes(self, encoding): member in _OCSPResponse
372 def public_bytes(self, encoding): member in _OCSPRequest
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Dx25519.rst150 >>> public_bytes = public_key.public_bytes(
154 >>> loaded_public_key = x25519.X25519PublicKey.from_public_bytes(public_bytes)
156 .. method:: public_bytes(encoding, format)
Dx448.rst145 >>> public_bytes = public_key.public_bytes(
149 >>> loaded_public_key = x448.X448PublicKey.from_public_bytes(public_bytes)
151 .. method:: public_bytes(encoding, format)
/external/python/cryptography/tests/x509/
Dtest_ocsp.py129 assert req.public_bytes(serialization.Encoding.DER) == req_bytes
137 req.public_bytes("invalid")
139 req.public_bytes(serialization.Encoding.PEM)
186 serialized = req.public_bytes(serialization.Encoding.DER)
554 assert resp.public_bytes(serialization.Encoding.DER) == der
745 assert resp.public_bytes(serialization.Encoding.DER) == resp_bytes
753 resp.public_bytes("invalid")
755 resp.public_bytes(serialization.Encoding.PEM)
Dtest_x509.py305 crl = x509.load_pem_x509_crl(crl.public_bytes(
321 crl = x509.load_der_x509_crl(crl.public_bytes(
350 serialized = crl.public_bytes(encoding)
361 crl.public_bytes('NotAnEncoding')
1061 cert = x509.load_pem_x509_certificate(cert.public_bytes(
1084 cert = x509.load_der_x509_certificate(cert.public_bytes(
1106 cert.public_bytes('NotAnEncoding')
1129 serialized = cert.public_bytes(encoding)
1296 request = x509.load_pem_x509_csr(request.public_bytes(
1323 request = x509.load_der_x509_csr(request.public_bytes(
[all …]
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dx448.py28 def public_bytes(self, encoding, format): member in X448PublicKey
Dx25519.py28 def public_bytes(self, encoding=None, format=None): member in X25519PublicKey
Ddh.py206 def public_bytes(self, encoding, format): member in DHPublicKey
Ddsa.py107 def public_bytes(self, encoding, format): member in DSAPublicKey
Drsa.py96 def public_bytes(self, encoding, format): member in RSAPublicKey
/external/python/cryptography/src/cryptography/x509/
Dbase.py179 def public_bytes(self, encoding): member in Certificate
188 def public_bytes(self, encoding): member in CertificateRevocationList
344 def public_bytes(self, encoding): member in CertificateSigningRequest
Dname.py230 def public_bytes(self, backend): member in Name
Docsp.py290 def public_bytes(self, encoding): member in OCSPRequest
/external/python/cryptography/
DCHANGELOG.rst50 :meth:`~cryptography.hazmat.primitives.asymmetric.x25519.X25519PublicKey.public_bytes`
53 …:meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.public_bytes`. Depreca…
400 :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey.public_bytes`
473 * Added :meth:`~cryptography.x509.Name.public_bytes` to
695 :meth:`~cryptography.x509.CertificateRevocationList.public_bytes` method of
805 ``public_bytes`` method of
807 * Support serialization of certificates using the ``public_bytes`` method of
899 serialization of public keys using the ``public_bytes`` method of
1006 * Added ``public_bytes`` to
1011 * Added ``public_bytes`` to
[all …]
/external/python/cryptography/docs/x509/
Dtutorial.rst82 ... f.write(csr.public_bytes(serialization.Encoding.PEM))
151 ... f.write(cert.public_bytes(serialization.Encoding.PEM))
Docsp.rst180 >>> base64.b64encode(req.public_bytes(serialization.Encoding.DER))
397 .. method:: public_bytes(encoding)
592 .. method:: public_bytes(encoding)

12