Home
last modified time | relevance | path

Searched refs:private_bytes (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cryptography/tests/hazmat/primitives/
Dtest_x448.py110 def test_pub_priv_bytes_raw(self, private_bytes, public_bytes, backend): argument
111 private_key = X448PrivateKey.from_private_bytes(private_bytes)
112 assert private_key.private_bytes(
116 ) == private_bytes
161 serialized = key.private_bytes(encoding, fmt, encryption)
192 key.private_bytes(
199 key.private_bytes(
206 key.private_bytes(
233 private_bytes = binascii.unhexlify(
237 key = X448PrivateKey.from_private_bytes(bytearray(private_bytes))
[all …]
Dtest_x25519.py140 def test_pub_priv_bytes_raw(self, private_bytes, public_bytes, backend): argument
141 private_key = X25519PrivateKey.from_private_bytes(private_bytes)
142 assert private_key.private_bytes(
146 ) == private_bytes
182 key.private_bytes(
189 key.private_bytes(
196 key.private_bytes(
258 serialized = key.private_bytes(encoding, fmt, encryption)
263 private_bytes = bytearray(os.urandom(32))
264 key = X25519PrivateKey.from_private_bytes(private_bytes)
[all …]
Dtest_dsa.py704 serialized = key.private_bytes(
728 key.private_bytes(encoding, fmt, serialization.NoEncryption())
745 serialized = key.private_bytes(
785 serialized = key.private_bytes(
821 serialized = key.private_bytes(
831 key.private_bytes(
845 key.private_bytes(
859 key.private_bytes(
873 key.private_bytes(
887 key.private_bytes(
Dtest_dh.py419 serialized = key.private_bytes(
441 key.private_bytes(encoding, fmt, serialization.NoEncryption())
477 serialized = key.private_bytes(
535 key.private_bytes(
545 key.private_bytes(
555 key.private_bytes(
565 key.private_bytes(
575 key.private_bytes(
Dtest_ec.py697 serialized = key.private_bytes(
722 key.private_bytes(encoding, fmt, serialization.NoEncryption())
741 serialized = key.private_bytes(
787 serialized = key.private_bytes(
822 serialized = key.private_bytes(
839 key.private_bytes(
855 key.private_bytes(
871 key.private_bytes(
887 key.private_bytes(
903 key.private_bytes(
Dtest_rsa.py2052 serialized = key.private_bytes(
2076 key.private_bytes(encoding, fmt, serialization.NoEncryption())
2089 serialized = key.private_bytes(
2129 serialized = key.private_bytes(
2163 serialized = key.private_bytes(
2173 key.private_bytes(
2182 key.private_bytes(
2191 key.private_bytes(
2200 key.private_bytes(
2209 key.private_bytes(
Dtest_serialization.py1304 assert key.private_bytes(
1320 assert key.private_bytes(
1368 assert key.private_bytes(
1384 assert key.private_bytes(
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Dx25519.rst85 >>> private_bytes = private_key.private_bytes(
90 >>> loaded_private_key = x25519.X25519PrivateKey.from_private_bytes(private_bytes)
103 .. method:: private_bytes(encoding, format, encryption_algorithm)
Dx448.rst81 >>> private_bytes = private_key.private_bytes(
86 >>> loaded_private_key = x448.X448PrivateKey.from_private_bytes(private_bytes)
99 .. method:: private_bytes(encoding, format, encryption_algorithm)
Dserialization.rst450 An enumeration for private key formats. Used with the ``private_bytes``
570 An enumeration for encoding types. Used with the ``private_bytes`` method
625 like ``private_bytes`` available on
634 …lass:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`.
Drsa.rst91 :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`
97 >>> pem = private_key.private_bytes(
110 >>> pem = private_key.private_bytes(
604 .. method:: private_bytes(encoding, format, encryption_algorithm)
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dx448.py64 def private_bytes(self, encoding, format, encryption_algorithm): member in X448PrivateKey
Dx25519.py64 def private_bytes(self, encoding, format, encryption_algorithm): member in X25519PrivateKey
Ddh.py179 def private_bytes(self, encoding, format, encryption_algorithm): member in DHPrivateKeyWithSerialization
Ddsa.py74 def private_bytes(self, encoding, format, encryption_algorithm): member in DSAPrivateKeyWithSerialization
Drsa.py63 def private_bytes(self, encoding, format, encryption_algorithm): member in RSAPrivateKeyWithSerialization
Dec.py111 def private_bytes(self, encoding, format, encryption_algorithm): member in EllipticCurvePrivateKeyWithSerialization
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dx448.py86 def private_bytes(self, encoding, format, encryption_algorithm): member in _X448PrivateKey
Dx25519.py106 def private_bytes(self, encoding, format, encryption_algorithm): member in _X25519PrivateKey
Ddsa.py181 def private_bytes(self, encoding, format, encryption_algorithm): member in _DSAPrivateKey
Ddh.py192 def private_bytes(self, encoding, format, encryption_algorithm): member in _DHPrivateKey
Dec.py211 def private_bytes(self, encoding, format, encryption_algorithm): member in _EllipticCurvePrivateKey
/external/python/cryptography/docs/x509/
Dtutorial.rst41 ... f.write(key.private_bytes(
112 ... f.write(key.private_bytes(
/external/python/cryptography/tests/hazmat/backends/
Dtest_openssl.py518 key.private_bytes(
566 private_key.private_bytes(serialization.Encoding.PEM,
/external/python/cryptography/
DCHANGELOG.rst396 :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization.private_bytes`
905 serialization of private keys using the ``private_bytes`` method of
986 …ryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization.private_bytes`
993 …:meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`
1000 …:meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization.private_bytes`

12