Home
last modified time | relevance | path

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

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