forked from wolfSSL/wolfssl
Fix implicit conversion.
Fix implicit type conversion from size_t to word32 in liboqs.c source file to make it build with clang. Fixes #7108. Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user