Make it clear that crypto_sign_SECRETKEYBYTES actually stands for 2 * 32

This commit is contained in:
Frank Denis 2014-05-07 23:23:39 -07:00
parent 9d29f94ac2
commit ee20da2cd7
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#include <stddef.h> #include <stddef.h>
#include "export.h" #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_PUBLICKEYBYTES 32U
#define crypto_sign_ed25519_SEEDBYTES 32U #define crypto_sign_ed25519_SEEDBYTES 32U
#define crypto_sign_ed25519_BYTES 64U #define crypto_sign_ed25519_BYTES 64U

View File

@ -4,7 +4,7 @@
#include <stddef.h> #include <stddef.h>
#include "export.h" #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_PUBLICKEYBYTES 32U
#define crypto_sign_edwards25519sha512batch_BYTES 64U #define crypto_sign_edwards25519sha512batch_BYTES 64U