From 9f0208050eb14a354547b0a4edf0ac84ca2afa30 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 5 Aug 2014 14:26:39 -0700 Subject: [PATCH] crypto_sign_SECRETKEYBYTES already includes the public key --- test/default/ed25519_convert.c | 3 +-- test/default/sign.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/default/ed25519_convert.c b/test/default/ed25519_convert.c index da0f2666..9266619f 100644 --- a/test/default/ed25519_convert.c +++ b/test/default/ed25519_convert.c @@ -14,8 +14,7 @@ static const unsigned char keypair_seed[crypto_sign_ed25519_SEEDBYTES] = { int main(void) { unsigned char ed25519_pk[crypto_sign_ed25519_PUBLICKEYBYTES]; - unsigned char ed25519_skpk[crypto_sign_ed25519_SECRETKEYBYTES + - crypto_sign_ed25519_PUBLICKEYBYTES]; + unsigned char ed25519_skpk[crypto_sign_ed25519_SECRETKEYBYTES]; unsigned char curve25519_pk[crypto_scalarmult_curve25519_BYTES]; unsigned char curve25519_pk2[crypto_scalarmult_curve25519_BYTES]; unsigned char curve25519_sk[crypto_scalarmult_curve25519_BYTES]; diff --git a/test/default/sign.c b/test/default/sign.c index 2cf108a9..ac4ba23e 100644 --- a/test/default/sign.c +++ b/test/default/sign.c @@ -1055,8 +1055,7 @@ int main(void) unsigned char sig[crypto_sign_BYTES]; unsigned char sm[1024 + crypto_sign_BYTES]; unsigned char m[1024]; - unsigned char skpk[crypto_sign_SECRETKEYBYTES + - crypto_sign_PUBLICKEYBYTES]; + unsigned char skpk[crypto_sign_SECRETKEYBYTES]; unsigned char pk[crypto_sign_PUBLICKEYBYTES]; unsigned char sk[crypto_sign_SECRETKEYBYTES]; char pk_hex[crypto_sign_PUBLICKEYBYTES * 2 + 1];