Skip to content

Commit

Permalink
Merge pull request #8248 from lealem47/comp_key_fips
Browse files Browse the repository at this point in the history
Fix for Compressed Keys with FIPS
  • Loading branch information
JacobBarthelmeh authored Dec 4, 2024
2 parents 35e5074 + 3476425 commit bdbaa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -11973,8 +11973,7 @@ static int SetEccPublicKey(byte* output, ecc_key* key, int outLen,
if (ret == 0) {
/* Calculate the size of the encoded public point. */
PRIVATE_KEY_UNLOCK();
#if defined(HAVE_COMP_KEY) && defined(HAVE_FIPS) && \
defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION == 2)
#if defined(HAVE_COMP_KEY) && defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
/* in earlier versions of FIPS the get length functionality is not
* available with compressed keys */
pubSz = key->dp ? key->dp->size : MAX_ECC_BYTES;
Expand Down

0 comments on commit bdbaa52

Please sign in to comment.