Searched refs:SM3_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/include/crypto/ |
D | sm3_base.h | 44 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()
|
D | sm3.h | 16 #define SM3_BLOCK_SIZE 64 macro 35 u8 buffer[SM3_BLOCK_SIZE];
|
/linux-6.1.9/arch/x86/crypto/ |
D | sm3_avx_glue.c | 29 (sctx->count % SM3_BLOCK_SIZE) + len < SM3_BLOCK_SIZE) { in sm3_avx_update() 94 .cra_blocksize = SM3_BLOCK_SIZE,
|
/linux-6.1.9/crypto/ |
D | sm3.c | 174 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()
|
D | sm3_generic.c | 65 .cra_blocksize = SM3_BLOCK_SIZE,
|
/linux-6.1.9/arch/arm64/crypto/ |
D | sm3-ce-glue.c | 85 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
D | sm3-neon-glue.c | 82 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/keembay/ |
D | keembay-ocs-hcu-core.c | 1005 .cra_blocksize = SM3_BLOCK_SIZE, 1030 .cra_blocksize = SM3_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 2263 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/ |
D | cc_hash.c | 1747 .blocksize = SM3_BLOCK_SIZE,
|