Home
last modified time | relevance | path

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

/linux-6.1.9/include/crypto/
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()
Dsm3.h16 #define SM3_BLOCK_SIZE 64 macro
35 u8 buffer[SM3_BLOCK_SIZE];
/linux-6.1.9/arch/x86/crypto/
Dsm3_avx_glue.c29 (sctx->count % SM3_BLOCK_SIZE) + len < SM3_BLOCK_SIZE) { in sm3_avx_update()
94 .cra_blocksize = SM3_BLOCK_SIZE,
/linux-6.1.9/crypto/
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()
Dsm3_generic.c65 .cra_blocksize = SM3_BLOCK_SIZE,
/linux-6.1.9/arch/arm64/crypto/
Dsm3-ce-glue.c85 .base.cra_blocksize = SM3_BLOCK_SIZE,
Dsm3-neon-glue.c82 .base.cra_blocksize = SM3_BLOCK_SIZE,
/linux-6.1.9/drivers/crypto/keembay/
Dkeembay-ocs-hcu-core.c1005 .cra_blocksize = SM3_BLOCK_SIZE,
1030 .cra_blocksize = SM3_BLOCK_SIZE,
/linux-6.1.9/drivers/crypto/inside-secure/
Dsafexcel_hash.c2263 req->block_sz = SM3_BLOCK_SIZE; in safexcel_sm3_init()
2299 .cra_blocksize = SM3_BLOCK_SIZE,
2326 req->len = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2327 req->processed = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2333 req->block_sz = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init()
2371 .cra_blocksize = SM3_BLOCK_SIZE,
/linux-6.1.9/drivers/crypto/ccree/
Dcc_hash.c1747 .blocksize = SM3_BLOCK_SIZE,