Home
last modified time | relevance | path

Searched refs:mdc2_total (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/libecc/src/examples/hash/
H A Dmdc2.c24 MUST_HAVE((ctx->mdc2_total == 0), ret, err); in mdc2_set_padding_type()
96 ctx->mdc2_total = 0; in mdc2_init()
131 left = (ctx->mdc2_total & 0xF); in mdc2_update()
134 ctx->mdc2_total += ilen; in mdc2_update()
177 if((ctx->mdc2_total % MDC2_BLOCK_SIZE) != 0){ in mdc2_final()
178 for(i = (ctx->mdc2_total % MDC2_BLOCK_SIZE); i < MDC2_BLOCK_SIZE; i++){ in mdc2_final()
190 ctx->mdc2_buffer[(ctx->mdc2_total % MDC2_BLOCK_SIZE)] = 0x80; in mdc2_final()
192 for(i = ((unsigned int)(ctx->mdc2_total % MDC2_BLOCK_SIZE) + 1); i < MDC2_BLOCK_SIZE; i++){ in mdc2_final()
H A Dmdc2.h36 u64 mdc2_total; member