Home
last modified time | relevance | path

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

/openbmc/linux/include/crypto/
H A Dsm3_base.h44 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_update()
48 if (unlikely((partial + len) >= SM3_BLOCK_SIZE)) { in sm3_base_do_update()
52 int p = SM3_BLOCK_SIZE - partial; in sm3_base_do_update()
61 blocks = len / SM3_BLOCK_SIZE; in sm3_base_do_update()
62 len %= SM3_BLOCK_SIZE; in sm3_base_do_update()
66 data += blocks * SM3_BLOCK_SIZE; in sm3_base_do_update()
79 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize()
82 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_finalize()
86 memset(sctx->buffer + partial, 0x0, SM3_BLOCK_SIZE - partial); in sm3_base_do_finalize()
H A Dsm3.h16 #define SM3_BLOCK_SIZE 64 macro
35 u8 buffer[SM3_BLOCK_SIZE];
/openbmc/linux/arch/x86/crypto/
H A Dsm3_avx_glue.c29 (sctx->count % SM3_BLOCK_SIZE) + len < SM3_BLOCK_SIZE) { in sm3_avx_update()
94 .cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/crypto/
H A Dsm3.c174 data += SM3_BLOCK_SIZE; in sm3_block()
180 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_update()
185 if ((partial + len) >= SM3_BLOCK_SIZE) { in sm3_update()
189 int p = SM3_BLOCK_SIZE - partial; in sm3_update()
198 blocks = len / SM3_BLOCK_SIZE; in sm3_update()
199 len %= SM3_BLOCK_SIZE; in sm3_update()
203 data += blocks * SM3_BLOCK_SIZE; in sm3_update()
217 const int bit_offset = SM3_BLOCK_SIZE - sizeof(u64); in sm3_final()
220 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_final()
226 memset(sctx->buffer + partial, 0, SM3_BLOCK_SIZE - partial); in sm3_final()
H A Dsm3_generic.c65 .cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/arch/arm64/crypto/
H A Dsm3-neon-glue.c82 .base.cra_blocksize = SM3_BLOCK_SIZE,
H A Dsm3-ce-glue.c85 .base.cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-hash.c865 .cra_blocksize = SM3_BLOCK_SIZE,
895 .cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c2237 req->block_sz = SM3_BLOCK_SIZE; in safexcel_sm3_init()
2273 .cra_blocksize = SM3_BLOCK_SIZE,
2300 req->len = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2301 req->processed = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2307 req->block_sz = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2345 .cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c1004 .cra_blocksize = SM3_BLOCK_SIZE,
1030 .cra_blocksize = SM3_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_hash.c1747 .blocksize = SM3_BLOCK_SIZE,