/kernel/linux/linux-5.10/include/crypto/ |
H A D | sm3_base.h | 43 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()
|
H A D | sm3.h | 11 #define SM3_BLOCK_SIZE 64 macro 30 u8 buffer[SM3_BLOCK_SIZE];
|
/kernel/linux/linux-6.6/include/crypto/ |
H A 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()
|
H A D | sm3.h | 16 #define SM3_BLOCK_SIZE 64 macro 35 u8 buffer[SM3_BLOCK_SIZE];
|
/kernel/linux/linux-6.6/crypto/ |
H A 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 in sm3_final() [all...] |
H A D | sm3_generic.c | 65 .cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A 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,
|
/kernel/linux/linux-5.10/crypto/ |
H A D | sm3_generic.c | 141 src += SM3_BLOCK_SIZE; in sm3_generic_block_fn() 177 .cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | sm3-ce-glue.c | 73 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | sm3-neon-glue.c | 82 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
H A D | sm3-ce-glue.c | 85 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/drivers/crypto/inside-secure/ |
H A D | safexcel_hash.c | 2237 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,
|
/kernel/linux/linux-6.6/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 865 .cra_blocksize = SM3_BLOCK_SIZE, 895 .cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-hcu-core.c | 1004 .cra_blocksize = SM3_BLOCK_SIZE, 1030 .cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/ |
H A D | safexcel_hash.c | 2282 req->block_sz = SM3_BLOCK_SIZE; in safexcel_sm3_init() 2318 .cra_blocksize = SM3_BLOCK_SIZE, 2345 req->len = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2346 req->processed = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2352 req->block_sz = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2390 .cra_blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_hash.c | 1747 .blocksize = SM3_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_hash.c | 1747 .blocksize = SM3_BLOCK_SIZE,
|