From 494abde3eb61e0e374837ce0f6a008797b0199a9 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 9 Dec 2021 09:45:28 -0500 Subject: [PATCH] Better casting. --- wolfcrypt/src/falcon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/falcon.c b/wolfcrypt/src/falcon.c index 04ea642c5..8de9148bc 100644 --- a/wolfcrypt/src/falcon.c +++ b/wolfcrypt/src/falcon.c @@ -591,10 +591,11 @@ int wc_falcon_check_key(falcon_key* key) /* Sign and verify a message. */ int ret = 0; int res = 0; - byte msg[] = "The wolfSSL team is here to make you ready for quantum computers!!"; - word32 msglen = sizeof(msg); + const byte *msg = (const byte *)"The wolfSSL team is here to make you " + "ready for quantum computers!!"; + word32 msglen = (word32)sizeof(msg); byte sig[FALCON_MAX_SIG_SIZE]; - word32 siglen = sizeof(sig); + word32 siglen = (word32)sizeof(sig); ret = wc_falcon_sign_msg(msg, msglen, sig, &siglen, key);