mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 17:20:48 +02:00
Merge pull request #10416 from jackctj117/v6-fix
fix: guard wc_Ed448PublicKeyToDer ed448_export_public call for FIPS<7
This commit is contained in:
@@ -12928,7 +12928,11 @@ int wc_Ed448PublicKeyToDer(const ed448_key* key, byte* output, word32 inLen,
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
#if defined(HAVE_FIPS) && FIPS_VERSION3_LT(7,0,0)
|
||||
ret = wc_ed448_export_public((ed448_key *)key, pubKey, &pubKeyLen);
|
||||
#else
|
||||
ret = wc_ed448_export_public(key, pubKey, &pubKeyLen);
|
||||
#endif
|
||||
if (ret == 0) {
|
||||
ret = SetAsymKeyDerPublic(pubKey, pubKeyLen, output, inLen,
|
||||
ED448k, withAlg);
|
||||
|
||||
Reference in New Issue
Block a user