mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
wolfcrypt/src/ed25519.c: in ed25519_pairwise_consistency_test(), add casts to mollify -Wconversion.
This commit is contained in:
@@ -231,7 +231,7 @@ static int ed25519_pairwise_consistency_test(ed25519_key* key, WC_RNG* rng)
|
||||
if (err == 0) {
|
||||
/* Sign digest without context. */
|
||||
err = wc_ed25519_sign_msg_ex(digest, digestLen, sig, &sigLen, key,
|
||||
Ed25519, NULL, 0);
|
||||
(byte)Ed25519, NULL, 0);
|
||||
if (err != 0) {
|
||||
/* Any sign failure means test failed. */
|
||||
err = ECC_PCT_E;
|
||||
@@ -240,7 +240,7 @@ static int ed25519_pairwise_consistency_test(ed25519_key* key, WC_RNG* rng)
|
||||
if (err == 0) {
|
||||
/* Verify digest without context. */
|
||||
err = wc_ed25519_verify_msg_ex(sig, sigLen, digest, digestLen, &res,
|
||||
key, Ed25519, NULL, 0);
|
||||
key, (byte)Ed25519, NULL, 0);
|
||||
if (err != 0) {
|
||||
/* Any verification operation failure means test failed. */
|
||||
err = ECC_PCT_E;
|
||||
|
Reference in New Issue
Block a user