crypto_sign_SECRETKEYBYTES already includes the public key
This commit is contained in:
parent
b06951dd20
commit
9f0208050e
@ -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];
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user