Allow DTLS 1.3 to compile when FIPS is enabled

This commit is contained in:
Per Allansson
2022-10-31 08:42:13 +01:00
parent 0ea0b887a5
commit 0a88bb9779

View File

@ -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 */