Lines Matching defs:num
159 static void ssleay_rand_seed(const void *buf, int num);
160 static void ssleay_rand_add(const void *buf, int num, double add_entropy);
161 static int ssleay_rand_bytes(unsigned char *buf, int num);
162 static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num);
191 static void ssleay_rand_add(const void *buf, int num, double add)
237 state_index += num;
250 /* state[st_idx], ..., state[(st_idx + num - 1) % STATE_SIZE]
254 md_count[1] += (num / MD_DIGEST_LENGTH) + (num % MD_DIGEST_LENGTH > 0);
259 for (i=0; i<num; i+=MD_DIGEST_LENGTH)
261 j=(num-i);
317 static void ssleay_rand_seed(const void *buf, int num)
319 ssleay_rand_add(buf, num, num);
322 static int ssleay_rand_bytes(unsigned char *buf, int num)
349 for (i=0; i<num; i++)
355 if (num <= 0)
360 num_ceil = (1 + (num-1)/(MD_DIGEST_LENGTH/2)) * (MD_DIGEST_LENGTH/2);
374 * Finally, after we have finished 'num' random bytes for the
412 entropy -= num;
461 while (num > 0)
464 j=(num >= MD_DIGEST_LENGTH/2)?MD_DIGEST_LENGTH/2:num;
465 num-=j;
521 static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
526 ret = RAND_bytes(buf, num);