Home | History | Annotate | Download | only in rand

Lines Matching refs:MD_DIGEST_LENGTH

140 static unsigned char state[STATE_SIZE+MD_DIGEST_LENGTH];
141 static unsigned char md[MD_DIGEST_LENGTH];
186 OPENSSL_cleanse(md,MD_DIGEST_LENGTH);
197 unsigned char local_md[MD_DIGEST_LENGTH];
258 md_count[1] += (num / MD_DIGEST_LENGTH) + (num % MD_DIGEST_LENGTH > 0);
263 for (i=0; i<num; i+=MD_DIGEST_LENGTH)
266 j=(j > MD_DIGEST_LENGTH)?MD_DIGEST_LENGTH:j;
269 MD_Update(&m,local_md,MD_DIGEST_LENGTH);
341 unsigned char local_md[MD_DIGEST_LENGTH];
363 /* round upwards to multiple of MD_DIGEST_LENGTH/2 */
364 num_ceil = (1 + (num-1)/(MD_DIGEST_LENGTH/2)) * (MD_DIGEST_LENGTH/2);
433 #if MD_DIGEST_LENGTH > 20
436 #define DUMMY_SEED "...................." /* at least MD_DIGEST_LENGTH */
439 ssleay_rand_add(DUMMY_SEED, MD_DIGEST_LENGTH, 0.0);
440 n -= MD_DIGEST_LENGTH;
467 /* num_ceil -= MD_DIGEST_LENGTH/2 */
468 j=(num >= MD_DIGEST_LENGTH/2)?MD_DIGEST_LENGTH/2:num;
478 MD_Update(&m,local_md,MD_DIGEST_LENGTH);
492 k=(st_idx+MD_DIGEST_LENGTH/2)-st_num;
495 MD_Update(&m,&(state[st_idx]),MD_DIGEST_LENGTH/2-k);
499 MD_Update(&m,&(state[st_idx]),MD_DIGEST_LENGTH/2);
502 for (i=0; i<MD_DIGEST_LENGTH/2; i++)
508 *(buf++)=local_md[i+MD_DIGEST_LENGTH/2];
514 MD_Update(&m,local_md,MD_DIGEST_LENGTH);
516 MD_Update(&m,md,MD_DIGEST_LENGTH);