Skip to content

Commit 0264a51

Browse files
committed
wolfcrypt/src/ed25519.c: in ed25519_pairwise_consistency_test(), add casts to mollify -Wconversion.
1 parent 28480ec commit 0264a51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/ed25519.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static int ed25519_pairwise_consistency_test(ed25519_key* key, WC_RNG* rng)
231231
if (err == 0) {
232232
/* Sign digest without context. */
233233
err = wc_ed25519_sign_msg_ex(digest, digestLen, sig, &sigLen, key,
234-
Ed25519, NULL, 0);
234+
(byte)Ed25519, NULL, 0);
235235
if (err != 0) {
236236
/* Any sign failure means test failed. */
237237
err = ECC_PCT_E;
@@ -240,7 +240,7 @@ static int ed25519_pairwise_consistency_test(ed25519_key* key, WC_RNG* rng)
240240
if (err == 0) {
241241
/* Verify digest without context. */
242242
err = wc_ed25519_verify_msg_ex(sig, sigLen, digest, digestLen, &res,
243-
key, Ed25519, NULL, 0);
243+
key, (byte)Ed25519, NULL, 0);
244244
if (err != 0) {
245245
/* Any verification operation failure means test failed. */
246246
err = ECC_PCT_E;

0 commit comments

Comments
 (0)