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.
418 *ppmd=ctx->md.digest;
466 if(ctx->buf_len+ 2* md->digest->md_size > OK_BLOCK_SIZE) return;
468 EVP_DigestInit_ex(md, md->digest, NULL);
472 RAND_pseudo_bytes(md->md_data, md->digest->md_size);
473 memcpy(&(ctx->buf[ctx->buf_len]), md->md_data, md->digest->md_size);
474 longswap(&(ctx->buf[ctx->buf_len]), md->digest->md_size);
475 ctx->buf_len+= md->digest->md_size;
479 ctx->buf_len+= md->digest->md_size;
494 if((int)(ctx->buf_len-ctx->buf_off) < 2*md->digest->md_size) return;
496 EVP_DigestInit_ex(md, md->digest, NULL);
497 memcpy(md->md_data, &(ctx->buf[ctx->buf_off]), md->digest->md_size);
498 longswap(md->md_data, md->digest->md_size);
499 ctx->buf_off+= md->digest->md_size;
503 ret= memcmp(&(ctx->buf[ctx->buf_off]), tmp, md->digest->md_size) == 0;
504 ctx->buf_off+= md->digest->md_size;
537 ctx->buf_len+= md->digest->md_size;
557 if (ctx->buf_len < tl+ OK_BLOCK_BLOCK+ md->digest->md_size) return;
561 if(memcmp(&(ctx->buf[tl+ OK_BLOCK_BLOCK]), tmp, md->digest->md_size) == 0)
564 ctx->buf_off_save= tl+ OK_BLOCK_BLOCK+ md->digest->md_size;