mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
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)
|
||||
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);
|
||||
#else
|
||||
wc_AesEncryptDirect(c->aes, mask, ciphertext);
|
||||
#endif
|
||||
}
|
||||
#endif /* HAVE_AESGCM || HAVE_AESCCM */
|
||||
|
||||
|
Reference in New Issue
Block a user