Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/src/examples/hash/
H A Dsha0.c41 const u8 data[SHA0_BLOCK_SIZE]) in sha0_process() argument
138 fill = (u16)(SHA0_BLOCK_SIZE - left); in sha0_update()
151 while (remain_ilen >= SHA0_BLOCK_SIZE) { in sha0_update()
153 data_ptr += SHA0_BLOCK_SIZE; in sha0_update()
154 remain_ilen -= SHA0_BLOCK_SIZE; in sha0_update()
171 u8 last_padded_block[2 * SHA0_BLOCK_SIZE]; in sha0_final()
181 block_present = ctx->sha0_total % SHA0_BLOCK_SIZE; in sha0_final()
192 if (block_present > (SHA0_BLOCK_SIZE - 1 - sizeof(u64))) { in sha0_final()
195 (2 * SHA0_BLOCK_SIZE) - sizeof(u64)); in sha0_final()
197 ret = sha0_process(ctx, last_padded_block + SHA0_BLOCK_SIZE); EG(ret, err); in sha0_final()
[all …]
H A Dsha0.h93 #define SHA0_BLOCK_SIZE 64 macro
107 u8 sha0_buffer[SHA0_BLOCK_SIZE];
H A Dhash.c196 (*block_size) = SHA0_BLOCK_SIZE; in gen_hash_get_hash_sizes()