[core,security] fix assertion

The assert for the buffer size required too many bytes in the output
buffer.
This commit is contained in:
akallabeth 2024-10-31 13:11:20 +01:00
parent 63121583eb
commit 1b177eeda9
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -572,7 +572,7 @@ static void fips_expand_key_bits(const BYTE* in, size_t in_len, BYTE* out, size_
WINPR_ASSERT(in_len >= sizeof(buf));
WINPR_ASSERT(out);
WINPR_ASSERT(out_len > 24);
WINPR_ASSERT(out_len >= 24);
/* reverse every byte in the key */
for (size_t i = 0; i < sizeof(buf); i++)