From ee20da2cd755bce40f008c65a52d78c45870d7e3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 7 May 2014 23:23:39 -0700 Subject: [PATCH] Make it clear that crypto_sign_SECRETKEYBYTES actually stands for 2 * 32 --- src/libsodium/include/sodium/crypto_sign_ed25519.h | 2 +- .../include/sodium/crypto_sign_edwards25519sha512batch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/include/sodium/crypto_sign_ed25519.h b/src/libsodium/include/sodium/crypto_sign_ed25519.h index f21335e2..ce03d1d9 100644 --- a/src/libsodium/include/sodium/crypto_sign_ed25519.h +++ b/src/libsodium/include/sodium/crypto_sign_ed25519.h @@ -4,7 +4,7 @@ #include #include "export.h" -#define crypto_sign_ed25519_SECRETKEYBYTES 64U +#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) #define crypto_sign_ed25519_PUBLICKEYBYTES 32U #define crypto_sign_ed25519_SEEDBYTES 32U #define crypto_sign_ed25519_BYTES 64U diff --git a/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h b/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h index 825b42d0..7577ebf7 100644 --- a/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +++ b/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -4,7 +4,7 @@ #include #include "export.h" -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES 64U +#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) #define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U #define crypto_sign_edwards25519sha512batch_BYTES 64U