Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -12931,7 +12931,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);
Expand Down
Loading