Home
last modified time | relevance | path

Searched refs:peer_public_key (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/ring/src/
Dagreement.rs78 peer_public_key: untrusted::Input,
257 peer_public_key: &UnparsedPublicKey<B>, in agree_ephemeral()
264 let peer_public_key = UnparsedPublicKey { in agree_ephemeral() localVariable
265 algorithm: peer_public_key.algorithm, in agree_ephemeral()
266 bytes: peer_public_key.bytes.as_ref(), in agree_ephemeral()
268 agree_ephemeral_(my_private_key, peer_public_key, error_value, kdf) in agree_ephemeral()
273 peer_public_key: UnparsedPublicKey<&[u8]>, in agree_ephemeral_()
285 if peer_public_key.algorithm != my_private_key.algorithm { in agree_ephemeral_()
311 untrusted::Input::from(peer_public_key.bytes), in agree_ephemeral_()
/external/rust/crates/ring/src/ec/suite_b/
Decdh.rs49 peer_public_key: untrusted::Input,
56 peer_public_key,
85 peer_public_key: untrusted::Input, in ecdh()
101 let peer_public_key = parse_uncompressed_point(public_key_ops, peer_public_key)?; in ecdh() localVariable
124 let product = private_key_ops.point_mul(&my_private_key, &peer_public_key); in ecdh()
/external/rust/crates/ring/src/ec/curve25519/
Dx25519.rs95 peer_public_key: untrusted::Input, in x25519_ecdh()
100 let peer_public_key: &[u8; PUBLIC_KEY_LEN] = peer_public_key.as_slice_less_safe().try_into()?; in x25519_ecdh() localVariable
134 peer_public_key, in x25519_ecdh()
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dx448.py78 def exchange(self, peer_public_key): argument
79 if not isinstance(peer_public_key, X448PublicKey):
83 self._backend, self._evp_pkey, peer_public_key
Dx25519.py98 def exchange(self, peer_public_key): argument
99 if not isinstance(peer_public_key, X25519PublicKey):
103 self._backend, self._evp_pkey, peer_public_key
Dutils.py14 def _evp_pkey_derive(backend, evp_pkey, peer_public_key): argument
21 ctx, peer_public_key._evp_pkey
Dec.py151 def exchange(self, algorithm, peer_public_key): argument
162 if peer_public_key.curve.name != self.curve.name:
172 peer_public_key._ec_key
Ddh.py146 def exchange(self, peer_public_key): argument
150 self._backend._lib.DH_get0_key(peer_public_key._dh_cdata, pub_key,
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Dx25519.rst30 >>> # In a real handshake the peer_public_key will be received from the
34 >>> peer_public_key = X25519PrivateKey.generate().public_key()
35 >>> shared_key = private_key.exchange(peer_public_key)
96 .. method:: exchange(peer_public_key)
98 :param X25519PublicKey peer_public_key: The public key for the
Dx448.rst30 >>> # In a real handshake the peer_public_key will be received from the
34 >>> peer_public_key = X448PrivateKey.generate().public_key()
35 >>> shared_key = private_key.exchange(peer_public_key)
92 .. method:: exchange(peer_public_key)
94 :param X448PublicKey peer_public_key: The public key for the
Ddh.rst87 >>> # In a real handshake the peer_public_key will be received from the
91 >>> peer_public_key = parameters.generate_private_key().public_key()
92 >>> shared_key = private_key.exchange(peer_public_key)
123 peer_public_key = peer_public_numbers.public_key(default_backend())
225 .. method:: exchange(peer_public_key)
229 :param DHPublicKey peer_public_key: The public key for
Dec.rst314 >>> # In a real handshake the peer_public_key will be received from the
317 >>> peer_public_key = ec.generate_private_key(
320 >>> shared_key = private_key.exchange(ec.ECDH(), peer_public_key)
566 .. method:: exchange(algorithm, peer_public_key)
581 :param EllipticCurvePublicKey peer_public_key: The public key for the
/external/boringssl/src/ssl/
Dssl_key_share.cc249 HRSS_public_key peer_public_key; in Accept() local
251 !HRSS_parse_public_key(&peer_public_key, peer_key.data() + 32) || in Accept()
261 HRSS_encap(ciphertext, secret.data() + 32, &peer_public_key, entropy); in Accept()
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dssl_key_share.cc249 HRSS_public_key peer_public_key; in Accept() local
251 !HRSS_parse_public_key(&peer_public_key, peer_key.data() + 32) || in Accept()
261 HRSS_encap(ciphertext, secret.data() + 32, &peer_public_key, entropy); in Accept()
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dx448.py70 def exchange(self, peer_public_key): argument
Dx25519.py70 def exchange(self, peer_public_key): argument
Ddh.py163 def exchange(self, peer_public_key): argument
Dec.py71 def exchange(self, algorithm, peer_public_key): argument