Lines Matching refs:num_bytes
82 #define bn_random(bn, num_bytes) \
87 mpz_urandomb(bn, rs, num_bytes); \
103 #define bn_random(bn, num_bytes) gcry_mpi_randomize(bn, num_bytes, GCRY_WEAK_RANDOM)
112 int num_bytes;
114 num_bytes = bn_num_bytes(dh->p) - 1;
115 if (num_bytes <= 0 || num_bytes > MAX_BYTES)
121 bn_random(dh->priv_key, num_bytes);
138 int num_bytes;
140 num_bytes = bn_num_bytes(dh->p);
141 if (num_bytes <= 0 || num_bytes > MAX_BYTES)