Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/include/libecc/hash/
H A Dsm3.h21 #define SM3_BLOCK_SIZE 64 macro
45 #if (MAX_BLOCK_SIZE < SM3_BLOCK_SIZE)
47 #define MAX_BLOCK_SIZE SM3_BLOCK_SIZE
60 u8 sm3_buffer[SM3_BLOCK_SIZE];
H A Dhash_algs.h86 #ifdef SM3_BLOCK_SIZE
403 .block_size = SM3_BLOCK_SIZE,
/freebsd/crypto/libecc/src/hash/
H A Dsm3.c85 ATTRIBUTE_WARN_UNUSED_RET static int sm3_process(sm3_context *ctx, const u8 data[SM3_BLOCK_SIZE]) in sm3_process() argument
234 fill = (u16)(SM3_BLOCK_SIZE - left); in sm3_update()
247 while (remain_ilen >= SM3_BLOCK_SIZE) { in sm3_update()
249 data_ptr += SM3_BLOCK_SIZE; in sm3_update()
250 remain_ilen -= SM3_BLOCK_SIZE; in sm3_update()
267 u8 last_padded_block[2 * SM3_BLOCK_SIZE]; in sm3_final()
277 block_present = (ctx->sm3_total % SM3_BLOCK_SIZE); in sm3_final()
288 if (block_present > (SM3_BLOCK_SIZE - 1 - sizeof(u64))) { in sm3_final()
291 (2 * SM3_BLOCK_SIZE) - sizeof(u64)); in sm3_final()
293 ret = sm3_process(ctx, last_padded_block + SM3_BLOCK_SIZE); EG(ret, err); in sm3_final()
[all …]