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.
432 *ppmd = ctx->md.digest;
485 if (ctx->buf_len + 2 * md->digest->md_size > OK_BLOCK_SIZE)
488 if (!EVP_DigestInit_ex(md, md->digest, NULL))
494 if (RAND_pseudo_bytes(md->md_data, md->digest->md_size) < 0)
496 memcpy(&(ctx->buf[ctx->buf_len]), md->md_data, md->digest->md_size);
497 longswap(&(ctx->buf[ctx->buf_len]), md->digest->md_size);
498 ctx->buf_len += md->digest->md_size;
504 ctx->buf_len += md->digest->md_size;
523 if ((int)(ctx->buf_len - ctx->buf_off) < 2 * md->digest->md_size)
526 if (!EVP_DigestInit_ex(md, md->digest, NULL))
528 memcpy(md->md_data, &(ctx->buf[ctx->buf_off]), md->digest->md_size);
529 longswap(md->md_data, md->digest->md_size);
530 ctx->buf_off += md->digest->md_size;
536 ret = memcmp(&(ctx->buf[ctx->buf_off]), tmp, md->digest->md_size) == 0;
537 ctx->buf_off += md->digest->md_size;
574 ctx->buf_len += md->digest->md_size;
601 if (ctx->buf_len < tl + OK_BLOCK_BLOCK + md->digest->md_size)
609 if (memcmp(&(ctx->buf[tl + OK_BLOCK_BLOCK]), tmp, md->digest->md_size) ==
612 ctx->buf_off_save = tl + OK_BLOCK_BLOCK + md->digest->md_size;