diff options
Diffstat (limited to 'src/third_party/fiat/curve25519.c')
-rw-r--r-- | src/third_party/fiat/curve25519.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/third_party/fiat/curve25519.c b/src/third_party/fiat/curve25519.c index 60da1c89..58a5ed04 100644 --- a/src/third_party/fiat/curve25519.c +++ b/src/third_party/fiat/curve25519.c @@ -2960,6 +2960,11 @@ void ED25519_keypair(uint8_t out_public_key[32], uint8_t out_private_key[64]) { int ED25519_sign(uint8_t out_sig[64], const uint8_t *message, size_t message_len, const uint8_t private_key[64]) { + // NOTE: The documentation on this function says that it returns zero on + // allocation failure. While that can't happen with the current + // implementation, we want to reserve the ability to allocate in this + // implementation in the future. + uint8_t az[SHA512_DIGEST_LENGTH]; SHA512(private_key, 32, az); |