forked from wolfSSL/wolfssl
Allow DTLS 1.3 to compile when FIPS is enabled
This commit is contained in:
@ -250,7 +250,12 @@ static int Dtls13GetRnMask(WOLFSSL* ssl, const byte* ciphertext, byte* mask,
|
|||||||
|
|
||||||
if (c->aes == NULL)
|
if (c->aes == NULL)
|
||||||
return BAD_STATE_E;
|
return BAD_STATE_E;
|
||||||
|
#if !defined(HAVE_SELFTEST) && \
|
||||||
|
(!defined(HAVE_FIPS) || (defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,3)))
|
||||||
return wc_AesEncryptDirect(c->aes, mask, ciphertext);
|
return wc_AesEncryptDirect(c->aes, mask, ciphertext);
|
||||||
|
#else
|
||||||
|
wc_AesEncryptDirect(c->aes, mask, ciphertext);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif /* HAVE_AESGCM || HAVE_AESCCM */
|
#endif /* HAVE_AESGCM || HAVE_AESCCM */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user