mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #8248 from lealem47/comp_key_fips
Fix for Compressed Keys with FIPS
This commit is contained in:
@ -11973,8 +11973,7 @@ static int SetEccPublicKey(byte* output, ecc_key* key, int outLen,
|
|||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
/* Calculate the size of the encoded public point. */
|
/* Calculate the size of the encoded public point. */
|
||||||
PRIVATE_KEY_UNLOCK();
|
PRIVATE_KEY_UNLOCK();
|
||||||
#if defined(HAVE_COMP_KEY) && defined(HAVE_FIPS) && \
|
#if defined(HAVE_COMP_KEY) && defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
|
||||||
defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION == 2)
|
|
||||||
/* in earlier versions of FIPS the get length functionality is not
|
/* in earlier versions of FIPS the get length functionality is not
|
||||||
* available with compressed keys */
|
* available with compressed keys */
|
||||||
pubSz = key->dp ? key->dp->size : MAX_ECC_BYTES;
|
pubSz = key->dp ? key->dp->size : MAX_ECC_BYTES;
|
||||||
|
Reference in New Issue
Block a user