liboqs: add RNG support for dilithium

Added a RNG argument to the wc_dilithium_sign_msg method to properly
generate necessary random data using the desired WolfSSL RNG object.

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
This commit is contained in:
Tobias Frauenschläger
2023-11-22 17:16:13 +01:00
parent 755c385b1f
commit ec86a86096
5 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -8896,7 +8896,7 @@ static int SendTls13CertificateVerify(WOLFSSL* ssl)
ret = wc_dilithium_sign_msg(args->sigData, args->sigDataSz,
args->verify + HASH_SIG_SIZE +
VERIFY_HEADER, (word32*)&sig->length,
(dilithium_key*)ssl->hsKey);
(dilithium_key*)ssl->hsKey, ssl->rng);
args->length = (word16)sig->length;
}
#endif