Lines Matching refs:MD_DIGEST_LENGTH
140 static unsigned char state[STATE_SIZE+MD_DIGEST_LENGTH];
141 static unsigned char md[MD_DIGEST_LENGTH];
185 OPENSSL_cleanse(md,MD_DIGEST_LENGTH); in ssleay_rand_cleanup()
196 unsigned char local_md[MD_DIGEST_LENGTH]; in ssleay_rand_add()
260 md_count[1] += (num / MD_DIGEST_LENGTH) + (num % MD_DIGEST_LENGTH > 0); in ssleay_rand_add()
265 for (i=0; i<num; i+=MD_DIGEST_LENGTH) in ssleay_rand_add()
268 j=(j > MD_DIGEST_LENGTH)?MD_DIGEST_LENGTH:j; in ssleay_rand_add()
271 MD_Update(&m,local_md,MD_DIGEST_LENGTH); in ssleay_rand_add()
343 unsigned char local_md[MD_DIGEST_LENGTH]; in ssleay_rand_bytes()
366 num_ceil = (1 + (num-1)/(MD_DIGEST_LENGTH/2)) * (MD_DIGEST_LENGTH/2); in ssleay_rand_bytes()
435 #if MD_DIGEST_LENGTH > 20 in ssleay_rand_bytes()
441 ssleay_rand_add(DUMMY_SEED, MD_DIGEST_LENGTH, 0.0); in ssleay_rand_bytes()
442 n -= MD_DIGEST_LENGTH; in ssleay_rand_bytes()
471 j=(num >= MD_DIGEST_LENGTH/2)?MD_DIGEST_LENGTH/2:num; in ssleay_rand_bytes()
481 MD_Update(&m,local_md,MD_DIGEST_LENGTH); in ssleay_rand_bytes()
495 k=(st_idx+MD_DIGEST_LENGTH/2)-st_num; in ssleay_rand_bytes()
498 MD_Update(&m,&(state[st_idx]),MD_DIGEST_LENGTH/2-k); in ssleay_rand_bytes()
502 MD_Update(&m,&(state[st_idx]),MD_DIGEST_LENGTH/2); in ssleay_rand_bytes()
505 for (i=0; i<MD_DIGEST_LENGTH/2; i++) in ssleay_rand_bytes()
511 *(buf++)=local_md[i+MD_DIGEST_LENGTH/2]; in ssleay_rand_bytes()
517 MD_Update(&m,local_md,MD_DIGEST_LENGTH); in ssleay_rand_bytes()
520 MD_Update(&m,md,MD_DIGEST_LENGTH); in ssleay_rand_bytes()