Static ring::agreement::X25519
[−]
[src]
pub static X25519: Algorithm=
agreement::Algorithm{i: ec::AgreementAlgorithmImpl{public_key_len: X25519_ELEM_SCALAR_PUBLIC_KEY_LEN, elem_and_scalar_len: X25519_ELEM_SCALAR_PUBLIC_KEY_LEN, nid: 948, generate_private_key: x25519_generate_private_key, public_from_private: x25519_public_from_private, ecdh: x25519_ecdh,},}
X25519 (ECDH using Curve25519) as described in RFC 7748.
Everything is as described in RFC 7748. Key agreement will fail if the result of the X25519 operation is zero; see the notes on the "all-zero value" in RFC 7748 section 6.1.