Home
last modified time | relevance | path

Searched refs:MDC2_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/libecc/src/examples/hash/
H A Dmdc2.c41 const u8 data[MDC2_BLOCK_SIZE]) in mdc2_process() argument
132 fill = (u16)(MDC2_BLOCK_SIZE - left); in mdc2_update()
145 while (remain_ilen >= MDC2_BLOCK_SIZE) { in mdc2_update()
147 data_ptr += MDC2_BLOCK_SIZE; in mdc2_update()
148 remain_ilen -= MDC2_BLOCK_SIZE; 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.h18 #define MDC2_BLOCK_SIZE 8 macro
40 u8 mdc2_buffer[MDC2_BLOCK_SIZE];
H A Dhash.c209 (*block_size) = MDC2_BLOCK_SIZE; in gen_hash_get_hash_sizes()