Home
last modified time | relevance | path

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

/Linux-v4.19/include/crypto/
Dsm3_base.h51 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_update()
55 if (unlikely((partial + len) >= SM3_BLOCK_SIZE)) { in sm3_base_do_update()
59 int p = SM3_BLOCK_SIZE - partial; in sm3_base_do_update()
68 blocks = len / SM3_BLOCK_SIZE; in sm3_base_do_update()
69 len %= SM3_BLOCK_SIZE; in sm3_base_do_update()
73 data += blocks * SM3_BLOCK_SIZE; in sm3_base_do_update()
86 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize()
89 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_finalize()
93 memset(sctx->buffer + partial, 0x0, SM3_BLOCK_SIZE - partial); in sm3_base_do_finalize()
Dsm3.h11 #define SM3_BLOCK_SIZE 64 macro
30 u8 buffer[SM3_BLOCK_SIZE];
/Linux-v4.19/crypto/
Dsm3_generic.c152 src += SM3_BLOCK_SIZE; in sm3_generic_block_fn()
187 .cra_blocksize = SM3_BLOCK_SIZE,
/Linux-v4.19/arch/arm64/crypto/
Dsm3-ce-glue.c75 .base.cra_blocksize = SM3_BLOCK_SIZE,