Merge pull request #3189 from SparkiDev/ed448_pkcb_fix

Fix calls to Ed448 sign and verify in test.h
pull/3211/head
Daniel Pouzzner 2020-08-04 17:23:45 -05:00 committed by GitHub
commit def3192073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -2882,7 +2882,7 @@ static WC_INLINE int myEd448Sign(WOLFSSL* ssl, const byte* in, word32 inSz,
if (ret == 0) { if (ret == 0) {
ret = wc_Ed448PrivateKeyDecode(keyBuf, &idx, &myKey, keySz); ret = wc_Ed448PrivateKeyDecode(keyBuf, &idx, &myKey, keySz);
if (ret == 0) if (ret == 0)
ret = wc_ed448_sign_msg(in, inSz, out, outSz, &myKey); ret = wc_ed448_sign_msg(in, inSz, out, outSz, &myKey, NULL, 0);
wc_ed448_free(&myKey); wc_ed448_free(&myKey);
} }
@ -2914,7 +2914,8 @@ static WC_INLINE int myEd448Verify(WOLFSSL* ssl, const byte* sig, word32 sigSz,
if (ret == 0) { if (ret == 0) {
ret = wc_ed448_import_public(key, keySz, &myKey); ret = wc_ed448_import_public(key, keySz, &myKey);
if (ret == 0) { if (ret == 0) {
ret = wc_ed448_verify_msg(sig, sigSz, msg, msgSz, result, &myKey); ret = wc_ed448_verify_msg(sig, sigSz, msg, msgSz, result, &myKey,
NULL, 0);
} }
wc_ed448_free(&myKey); wc_ed448_free(&myKey);
} }