Home | History | Annotate | Download | only in evp

Lines Matching refs:digest

90 	with it's length and suffixed with it's digest. So you need only 
92 it's digest.
96 1) the digest of the block is computed over the whole stream
103 *) digest is initialized with random seed instead of
107 of the digest is also written to output.
110 and then compare the digest output.
439 *ppmd=ctx->md.digest;
487 if(ctx->buf_len+ 2* md->digest->md_size > OK_BLOCK_SIZE) return 1;
489 if (!EVP_DigestInit_ex(md, md->digest, NULL))
494 RAND_pseudo_bytes(md->md_data, md->digest->md_size);
495 memcpy(&(ctx->buf[ctx->buf_len]), md->md_data, md->digest->md_size);
496 longswap(&(ctx->buf[ctx->buf_len]), md->digest->md_size);
497 ctx->buf_len+= md->digest->md_size;
503 ctx->buf_len+= md->digest->md_size;
522 if((int)(ctx->buf_len-ctx->buf_off) < 2*md->digest->md_size) return 1;
524 if (!EVP_DigestInit_ex(md, md->digest, NULL))
526 memcpy(md->md_data, &(ctx->buf[ctx->buf_off]), md->digest->md_size);
527 longswap(md->md_data, md->digest->md_size);
528 ctx->buf_off+= md->digest->md_size;
534 ret= memcmp(&(ctx->buf[ctx->buf_off]), tmp, md->digest->md_size) == 0;
535 ctx->buf_off+= md->digest->md_size;
575 ctx->buf_len+= md->digest->md_size;
599 if (ctx->buf_len < tl+ OK_BLOCK_BLOCK+ md->digest->md_size) return 1;
606 if(memcmp(&(ctx->buf[tl+ OK_BLOCK_BLOCK]), tmp, md->digest->md_size) == 0)
609 ctx->buf_off_save= tl+ OK_BLOCK_BLOCK+ md->digest->md_size;