Merge pull request #5758 from per-allansson/dtls13-fips

Allow DTLS 1.3 to compile when FIPS is enabled
This commit is contained in:
David Garske
2022-11-09 18:18:06 -08:00
committed by GitHub

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