diff --git a/test/default/ed25519_convert.c b/test/default/ed25519_convert.c index f7af0adf..04b3a691 100644 --- a/test/default/ed25519_convert.c +++ b/test/default/ed25519_convert.c @@ -51,6 +51,11 @@ main(void) "0000000000000000000000000000000000000000000000000000000000000000", 64, NULL, NULL, NULL); assert(crypto_sign_ed25519_pk_to_curve25519(curve25519_pk, ed25519_pk) == -1); + sodium_hex2bin(ed25519_pk, crypto_sign_ed25519_PUBLICKEYBYTES, + "0200000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000", + 64, NULL, NULL, NULL); + assert(crypto_sign_ed25519_pk_to_curve25519(curve25519_pk, ed25519_pk) == -1); sodium_hex2bin(ed25519_pk, crypto_sign_ed25519_PUBLICKEYBYTES, "0500000000000000000000000000000000000000000000000000000000000000" "0000000000000000000000000000000000000000000000000000000000000000",