Merge pull request #7111 from Frauschi/fix_implicit_conversion

Fix implicit type conversion
This commit is contained in:
Sean Parkinson
2024-01-05 07:17:31 +10:00
committed by GitHub

View File

@@ -50,7 +50,7 @@ static int liboqs_init = 0;
static void wolfSSL_liboqsGetRandomData(uint8_t* buffer, size_t numOfBytes) static void wolfSSL_liboqsGetRandomData(uint8_t* buffer, size_t numOfBytes)
{ {
int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, numOfBytes); int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, (word32)numOfBytes);
if (ret != 0) { if (ret != 0) {
// ToDo: liboqs exits programm if RNG fails, not sure what to do here // ToDo: liboqs exits programm if RNG fails, not sure what to do here
} }