Add X25519 length constants.
Per request for named constants at https://codereview.chromium.org/2457153003/diff/40001/net/quic/core/crypto/curve25519_key_exchange.cc#newcode27 The public one is named X25519_PUBLIC_VALUE_LEN rather than X25519_PUBLIC_KEY_LEN for consistency with the rest of the documentation. (Apparently we say "X25519 public value" and "Ed25519 public key".) Change-Id: Idb76a0a9794f0f628c3b784e50a04fdb35bf3ee6 Reviewed-on: https://boringssl-review.googlesource.com/11941 Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
cec45b7e43
commit
6f73379114
@ -33,6 +33,9 @@ extern "C" {
|
||||
* sometimes referred to as “curve25519”, but “X25519” is a more precise name.
|
||||
* See http://cr.yp.to/ecdh.html and https://tools.ietf.org/html/rfc7748. */
|
||||
|
||||
#define X25519_PRIVATE_KEY_LEN 32
|
||||
#define X25519_PUBLIC_VALUE_LEN 32
|
||||
|
||||
/* X25519_keypair sets |out_public_value| and |out_private_key| to a freshly
|
||||
* generated, public–private key pair. */
|
||||
OPENSSL_EXPORT void X25519_keypair(uint8_t out_public_value[32],
|
||||
|
Loading…
Reference in New Issue
Block a user