crypto_sign_SECRETKEYBYTES already includes the public key

This commit is contained in:
Frank Denis 2014-08-05 14:26:39 -07:00
parent b06951dd20
commit 9f0208050e
2 changed files with 2 additions and 4 deletions

View File

@ -14,8 +14,7 @@ static const unsigned char keypair_seed[crypto_sign_ed25519_SEEDBYTES] = {
int main(void) int main(void)
{ {
unsigned char ed25519_pk[crypto_sign_ed25519_PUBLICKEYBYTES]; unsigned char ed25519_pk[crypto_sign_ed25519_PUBLICKEYBYTES];
unsigned char ed25519_skpk[crypto_sign_ed25519_SECRETKEYBYTES + unsigned char ed25519_skpk[crypto_sign_ed25519_SECRETKEYBYTES];
crypto_sign_ed25519_PUBLICKEYBYTES];
unsigned char curve25519_pk[crypto_scalarmult_curve25519_BYTES]; unsigned char curve25519_pk[crypto_scalarmult_curve25519_BYTES];
unsigned char curve25519_pk2[crypto_scalarmult_curve25519_BYTES]; unsigned char curve25519_pk2[crypto_scalarmult_curve25519_BYTES];
unsigned char curve25519_sk[crypto_scalarmult_curve25519_BYTES]; unsigned char curve25519_sk[crypto_scalarmult_curve25519_BYTES];

View File

@ -1055,8 +1055,7 @@ int main(void)
unsigned char sig[crypto_sign_BYTES]; unsigned char sig[crypto_sign_BYTES];
unsigned char sm[1024 + crypto_sign_BYTES]; unsigned char sm[1024 + crypto_sign_BYTES];
unsigned char m[1024]; unsigned char m[1024];
unsigned char skpk[crypto_sign_SECRETKEYBYTES + unsigned char skpk[crypto_sign_SECRETKEYBYTES];
crypto_sign_PUBLICKEYBYTES];
unsigned char pk[crypto_sign_PUBLICKEYBYTES]; unsigned char pk[crypto_sign_PUBLICKEYBYTES];
unsigned char sk[crypto_sign_SECRETKEYBYTES]; unsigned char sk[crypto_sign_SECRETKEYBYTES];
char pk_hex[crypto_sign_PUBLICKEYBYTES * 2 + 1]; char pk_hex[crypto_sign_PUBLICKEYBYTES * 2 + 1];