comparison libtomcrypt/src/math/rand_bn.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents e9dba7abd939
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 */ 8 */
9 #include "tomcrypt.h" 9 #include "tomcrypt.h"
10 10
11 #ifdef LTC_MDSA 11 #if defined(LTC_MDSA) || defined(LTC_MECC)
12 /** 12 /**
13 Generate a random number N with given bitlength (note: MSB can be 0) 13 Generate a random number N with given bitlength (note: MSB can be 0)
14 */ 14 */
15 15
16 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng) 16 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng)