Searched refs:SM4_BLOCK_SIZE (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/arch/x86/crypto/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/arch/arm64/crypto/ |
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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,
|
H A D | sm4-ce-cipher-glue.c | 59 .cra_blocksize = SM4_BLOCK_SIZE,
|
/openbmc/linux/include/crypto/ |
H A D | sm4.h | 16 #define SM4_BLOCK_SIZE 16 macro
|
/openbmc/linux/crypto/ |
H A D | sm4_generic.c | 62 .cra_blocksize = SM4_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/ccree/ |
H 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,
|
/openbmc/linux/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 3157 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_cbc_cra_init() 3171 .ivsize = SM4_BLOCK_SIZE, 3195 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_ofb_cra_init() 3209 .ivsize = SM4_BLOCK_SIZE, 3233 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_cfb_cra_init() 3247 .ivsize = SM4_BLOCK_SIZE, 3285 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_skcipher_sm4_ctr_cra_init() 3346 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_aead_sm4cbc_sha1_cra_init() 3359 .ivsize = SM4_BLOCK_SIZE, 3455 ctx->blocksz = SM4_BLOCK_SIZE; in safexcel_aead_sm4cbc_sm3_cra_init() [all …]
|
/openbmc/qemu/crypto/ |
H A D | cipher-nettle.c.inc | 453 QCryptoNettleSm4, SM4_BLOCK_SIZE,
|