Searched refs:SM4_BLOCK_SIZE (Results 1 – 11 of 11) sorted by relevance
/linux-6.3-rc2/arch/x86/crypto/ |
A D | sm4_aesni_avx_glue.c | 112 src += SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 113 dst += SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 114 nbytes -= SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 152 u8 iv[SM4_BLOCK_SIZE]; in sm4_avx_cbc_decrypt() 161 memcpy(iv, src + SM4_BLOCK_SIZE, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt() 166 SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt() 167 src -= SM4_BLOCK_SIZE; in sm4_avx_cbc_decrypt() 168 dst -= SM4_BLOCK_SIZE; in sm4_avx_cbc_decrypt() 211 src += SM4_BLOCK_SIZE; in sm4_cfb_encrypt() 212 dst += SM4_BLOCK_SIZE; in sm4_cfb_encrypt() [all …]
|
A D | sm4_aesni_avx2_glue.c | 63 .cra_blocksize = SM4_BLOCK_SIZE, 69 .walksize = 16 * SM4_BLOCK_SIZE, 79 .cra_blocksize = SM4_BLOCK_SIZE, 85 .ivsize = SM4_BLOCK_SIZE, 86 .walksize = 16 * SM4_BLOCK_SIZE, 102 .ivsize = SM4_BLOCK_SIZE, 103 .chunksize = SM4_BLOCK_SIZE, 104 .walksize = 16 * SM4_BLOCK_SIZE, 120 .ivsize = SM4_BLOCK_SIZE, 121 .chunksize = SM4_BLOCK_SIZE, [all …]
|
/linux-6.3-rc2/arch/arm64/crypto/ |
A D | sm4-neon-glue.c | 101 src += SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 102 dst += SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 103 nbytes -= SM4_BLOCK_SIZE; in sm4_cbc_encrypt() 156 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() 165 src += SM4_BLOCK_SIZE; in sm4_cfb_encrypt() 166 dst += SM4_BLOCK_SIZE; in sm4_cfb_encrypt() 167 nbytes -= SM4_BLOCK_SIZE; in sm4_cfb_encrypt() 300 .ivsize = SM4_BLOCK_SIZE, 315 .ivsize = SM4_BLOCK_SIZE, 316 .chunksize = SM4_BLOCK_SIZE, [all …]
|
A D | sm4-ce-glue.c | 73 u8 digest[SM4_BLOCK_SIZE]; 541 .ivsize = SM4_BLOCK_SIZE, 556 .ivsize = SM4_BLOCK_SIZE, 572 .ivsize = SM4_BLOCK_SIZE, 588 .ivsize = SM4_BLOCK_SIZE, 604 .ivsize = SM4_BLOCK_SIZE, 726 if (len < SM4_BLOCK_SIZE && ctx->len == SM4_BLOCK_SIZE) { in sm4_mac_update() 732 len %= SM4_BLOCK_SIZE; in sm4_mac_update() 763 consts += SM4_BLOCK_SIZE; in sm4_cmac_final() 801 + SM4_BLOCK_SIZE * 2, [all …]
|
A D | sm4-ce-ccm-glue.c | 69 memcpy(info, req->iv, SM4_BLOCK_SIZE); in ccm_format_input() 130 if (len == SM4_BLOCK_SIZE) { in ccm_calculate_auth_mac() 131 if (n < SM4_BLOCK_SIZE) { in ccm_calculate_auth_mac() 137 nblocks = n / SM4_BLOCK_SIZE; in ccm_calculate_auth_mac() 141 ptr += nblocks * SM4_BLOCK_SIZE; in ccm_calculate_auth_mac() 142 n %= SM4_BLOCK_SIZE; in ccm_calculate_auth_mac() 148 l = min(n, SM4_BLOCK_SIZE - len); in ccm_calculate_auth_mac() 246 u8 authtag[SM4_BLOCK_SIZE]; in ccm_decrypt() 282 .ivsize = SM4_BLOCK_SIZE, 283 .chunksize = SM4_BLOCK_SIZE, [all …]
|
A D | sm4-ce-gcm-glue.c | 146 u8 __aligned(8) iv[SM4_BLOCK_SIZE]; in gcm_crypt() 149 memset(ghash, 0, SM4_BLOCK_SIZE); in gcm_crypt() 163 unsigned int tail = walk->nbytes % SM4_BLOCK_SIZE; in gcm_crypt() 201 u8 __aligned(8) ghash[SM4_BLOCK_SIZE]; in gcm_encrypt() 221 u8 __aligned(8) ghash[SM4_BLOCK_SIZE]; in gcm_decrypt() 222 u8 authtag[SM4_BLOCK_SIZE]; in gcm_decrypt() 252 .chunksize = SM4_BLOCK_SIZE, 253 .maxauthsize = SM4_BLOCK_SIZE,
|
A D | sm4-ce-cipher-glue.c | 59 .cra_blocksize = SM4_BLOCK_SIZE,
|
/linux-6.3-rc2/include/crypto/ |
A D | sm4.h | 16 #define SM4_BLOCK_SIZE 16 macro
|
/linux-6.3-rc2/drivers/crypto/ccree/ |
A D | cc_cipher.c | 141 if (IS_ALIGNED(size, SM4_BLOCK_SIZE)) in validate_data_size() 1330 .blocksize = SM4_BLOCK_SIZE, 1337 .ivsize = SM4_BLOCK_SIZE, 1347 .blocksize = SM4_BLOCK_SIZE, 1371 .ivsize = SM4_BLOCK_SIZE, 1381 .blocksize = SM4_BLOCK_SIZE, 1388 .ivsize = SM4_BLOCK_SIZE, 1399 .blocksize = SM4_BLOCK_SIZE, 1406 .ivsize = SM4_BLOCK_SIZE,
|
/linux-6.3-rc2/drivers/crypto/inside-secure/ |
A D | safexcel_cipher.c | 3154 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_cbc_cra_init() 3168 .ivsize = SM4_BLOCK_SIZE, 3192 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_ofb_cra_init() 3206 .ivsize = SM4_BLOCK_SIZE, 3230 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_cfb_cra_init() 3244 .ivsize = SM4_BLOCK_SIZE, 3282 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_ctr_cra_init() 3343 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_aead_sm4cbc_sha1_cra_init() 3356 .ivsize = SM4_BLOCK_SIZE, 3452 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_aead_sm4cbc_sm3_cra_init() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | sm4_generic.c | 62 .cra_blocksize = SM4_BLOCK_SIZE,
|
Completed in 34 milliseconds