Searched refs:SM3_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
21 #define SM3_BLOCK_SIZE 64 macro45 #if (MAX_BLOCK_SIZE < SM3_BLOCK_SIZE)47 #define MAX_BLOCK_SIZE SM3_BLOCK_SIZE60 u8 sm3_buffer[SM3_BLOCK_SIZE];
86 #ifdef SM3_BLOCK_SIZE403 .block_size = SM3_BLOCK_SIZE,
85 ATTRIBUTE_WARN_UNUSED_RET static int sm3_process(sm3_context *ctx, const u8 data[SM3_BLOCK_SIZE]) in sm3_process() argument234 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 …]