Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/x86/crypto/
A Dsm4_aesni_avx_glue.c112 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 Dsm4_aesni_avx2_glue.c63 .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 Dsm4-neon-glue.c101 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 Dsm4-ce-glue.c73 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 Dsm4-ce-ccm-glue.c69 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 Dsm4-ce-gcm-glue.c146 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 Dsm4-ce-cipher-glue.c59 .cra_blocksize = SM4_BLOCK_SIZE,
/linux-6.3-rc2/include/crypto/
A Dsm4.h16 #define SM4_BLOCK_SIZE 16 macro
/linux-6.3-rc2/drivers/crypto/ccree/
A Dcc_cipher.c141 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 Dsafexcel_cipher.c3154 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 Dsm4_generic.c62 .cra_blocksize = SM4_BLOCK_SIZE,

Completed in 34 milliseconds