Lines Matching refs:num
258 void RAND_seed(const void *buf, int num) in RAND_seed() argument
265 meth->seed(buf, num); in RAND_seed()
271 if (drbg != NULL && num > 0) in RAND_seed()
272 EVP_RAND_reseed(drbg, 0, NULL, 0, buf, num); in RAND_seed()
275 void RAND_add(const void *buf, int num, double randomness) in RAND_add() argument
282 meth->add(buf, num, randomness); in RAND_add()
287 if (drbg != NULL && num > 0) in RAND_add()
290 EVP_RAND_reseed(drbg, 0, buf, num, NULL, 0); in RAND_add()
293 EVP_RAND_reseed(drbg, 0, NULL, 0, buf, num); in RAND_add()
298 int RAND_pseudo_bytes(unsigned char *buf, int num) in RAND_pseudo_bytes() argument
303 return meth->pseudorand(buf, num); in RAND_pseudo_bytes()
338 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_priv_bytes_ex() argument
347 return meth->bytes(buf, num); in RAND_priv_bytes_ex()
355 return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0); in RAND_priv_bytes_ex()
360 int RAND_priv_bytes(unsigned char *buf, int num) in RAND_priv_bytes() argument
362 if (num < 0) in RAND_priv_bytes()
364 return RAND_priv_bytes_ex(NULL, buf, (size_t)num, 0); in RAND_priv_bytes()
367 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_bytes_ex() argument
376 return meth->bytes(buf, num); in RAND_bytes_ex()
384 return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0); in RAND_bytes_ex()
389 int RAND_bytes(unsigned char *buf, int num) in RAND_bytes() argument
391 if (num < 0) in RAND_bytes()
393 return RAND_bytes_ex(NULL, buf, (size_t)num, 0); in RAND_bytes()