Home
last modified time | relevance | path

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

/Linux-v5.4/include/crypto/
Dsm3_base.h43 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_update()
47 if (unlikely((partial + len) >= SM3_BLOCK_SIZE)) { in sm3_base_do_update()
51 int p = SM3_BLOCK_SIZE - partial; in sm3_base_do_update()
60 blocks = len / SM3_BLOCK_SIZE; in sm3_base_do_update()
61 len %= SM3_BLOCK_SIZE; in sm3_base_do_update()
65 data += blocks * SM3_BLOCK_SIZE; in sm3_base_do_update()
78 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize()
81 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_finalize()
85 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-v5.4/crypto/
Dsm3_generic.c141 src += SM3_BLOCK_SIZE; in sm3_generic_block_fn()
176 .cra_blocksize = SM3_BLOCK_SIZE,
/Linux-v5.4/arch/arm64/crypto/
Dsm3-ce-glue.c73 .base.cra_blocksize = SM3_BLOCK_SIZE,
/Linux-v5.4/drivers/crypto/ccree/
Dcc_hash.c1748 .blocksize = SM3_BLOCK_SIZE,