Home
last modified time | relevance | path

Searched refs:AES_KEYSIZE_128 (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/linux/include/crypto/
H A Daes.h14 #define AES_KEYSIZE_128 16 macro
40 case AES_KEYSIZE_128: in aes_check_keylen()
/openbmc/linux/drivers/crypto/
H A Dgeode-aes.c117 if (len == AES_KEYSIZE_128) { in geode_setkey_cip()
143 if (len == AES_KEYSIZE_128) { in geode_setkey_skcipher()
168 if (unlikely(tctx->keylen != AES_KEYSIZE_128)) { in geode_encrypt()
183 if (unlikely(tctx->keylen != AES_KEYSIZE_128)) { in geode_decrypt()
271 if (unlikely(tctx->keylen != AES_KEYSIZE_128)) { in geode_skcipher_crypt()
H A Dmxs-dcp.c65 uint8_t aes_key[2 * AES_KEYSIZE_128];
103 uint8_t key[AES_KEYSIZE_128];
230 2 * AES_KEYSIZE_128, DMA_TO_DEVICE); in mxs_dcp_run_aes()
287 dma_unmap_single(sdcp->dev, key_phys, 2 * AES_KEYSIZE_128, in mxs_dcp_run_aes()
327 memcpy(key + AES_KEYSIZE_128, req->iv, AES_KEYSIZE_128); in mxs_dcp_aes_block_crypt()
331 memset(key + AES_KEYSIZE_128, 0, AES_KEYSIZE_128); in mxs_dcp_aes_block_crypt()
456 if (unlikely(actx->key_len != AES_KEYSIZE_128)) in mxs_dcp_aes_enqueue()
503 if (len == AES_KEYSIZE_128) { in mxs_dcp_aes_setkey()
H A Dgeode-aes.h50 u8 key[AES_KEYSIZE_128];
H A Dsahara.c145 u8 key[AES_KEYSIZE_128];
635 if (keylen == AES_KEYSIZE_128) { in sahara_aes_setkey()
683 if (unlikely(ctx->keylen != AES_KEYSIZE_128)) in sahara_aes_crypt()
1385 dev->key_base = dmam_alloc_coherent(&pdev->dev, 2 * AES_KEYSIZE_128, in sahara_probe()
1391 dev->iv_base = dev->key_base + AES_KEYSIZE_128; in sahara_probe()
1392 dev->iv_phys_base = dev->key_phys_base + AES_KEYSIZE_128; in sahara_probe()
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-xts.c90 case AES_KEYSIZE_128 * 2: in ccp_aes_xts_setkey()
142 (ctx->u.aes.key_len != AES_KEYSIZE_128)) in ccp_aes_xts_crypt()
144 if ((ctx->u.aes.key_len != AES_KEYSIZE_128) && in ccp_aes_xts_crypt()
H A Dccp-crypto-aes-galois.c35 case AES_KEYSIZE_128: in ccp_aes_gcm_setkey()
H A Dccp-crypto-aes.c45 case AES_KEYSIZE_128: in ccp_aes_setkey()
/openbmc/linux/drivers/crypto/nx/
H A Dnx-aes-ecb.c31 case AES_KEYSIZE_128: in ecb_aes_nx_set_key()
H A Dnx-aes-cbc.c31 case AES_KEYSIZE_128: in cbc_aes_nx_set_key()
H A Dnx-aes-ctr.c32 case AES_KEYSIZE_128: in ctr_aes_nx_set_key()
H A Dnx-aes-xcbc.c36 case AES_KEYSIZE_128: in nx_xcbc_set_key()
/openbmc/linux/arch/powerpc/crypto/
H A Daes-spe-glue.c98 case AES_KEYSIZE_128: in ppc_aes_setkey()
138 case AES_KEYSIZE_128: in ppc_xts_setkey()
141 ppc_expand_key_128(ctx->key_twk, in_key + AES_KEYSIZE_128); in ppc_xts_setkey()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_aead.c273 AES_KEYSIZE_128, NS_BIT, 0); in xcbc_setkey()
279 + AES_KEYSIZE_128), in xcbc_setkey()
280 AES_KEYSIZE_128, NS_BIT, 0); in xcbc_setkey()
286 + 2 * AES_KEYSIZE_128), in xcbc_setkey()
287 AES_KEYSIZE_128, NS_BIT, 0); in xcbc_setkey()
374 if (ctx->auth_keylen != AES_KEYSIZE_128 && in validate_keys_sizes()
395 if (ctx->enc_keylen != AES_KEYSIZE_128 && in validate_keys_sizes()
1043 AES_KEYSIZE_128, NS_BIT); in cc_set_xcbc_desc()
1056 AES_KEYSIZE_128), AES_KEYSIZE_128, NS_BIT); in cc_set_xcbc_desc()
1069 2 * AES_KEYSIZE_128), AES_KEYSIZE_128, NS_BIT); in cc_set_xcbc_desc()
/openbmc/linux/arch/arm64/crypto/
H A Daes-ce-glue.c88 if (key_len != AES_KEYSIZE_128 && in ce_aes_expandkey()
/openbmc/qemu/backends/
H A Dcryptodev-builtin.c129 #define AES_KEYSIZE_128 16 macro
140 if (key_len == AES_KEYSIZE_128) { in cryptodev_builtin_get_aes_algo()
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-aes.c184 if (ctx->keylen >= AES_KEYSIZE_128) { in starfive_aes_write_key()
251 case AES_KEYSIZE_128: in starfive_aes_hw_init()
706 if (keylen != AES_KEYSIZE_128 && in starfive_aes_setkey()
725 if (keylen != AES_KEYSIZE_128 && in starfive_aes_aead_setkey()
/openbmc/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c259 case AES_KEYSIZE_128: in sec_alg_skcipher_setkey_aes_ecb()
281 case AES_KEYSIZE_128: in sec_alg_skcipher_setkey_aes_cbc()
303 case AES_KEYSIZE_128: in sec_alg_skcipher_setkey_aes_ctr()
330 case AES_KEYSIZE_128 * 2: in sec_alg_skcipher_setkey_aes_xts()
/openbmc/linux/drivers/crypto/qce/
H A Dskcipher.c195 case AES_KEYSIZE_128: in qce_skcipher_setkey()
291 ((keylen != AES_KEYSIZE_128 && keylen != AES_KEYSIZE_256) || in qce_skcipher_crypt()
H A Dcommon.c112 if (key_size == AES_KEYSIZE_128) in qce_auth_cfg()
238 if (aes_key_size == AES_KEYSIZE_128) in qce_encr_cfg()
/openbmc/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c409 case 2 * AES_KEYSIZE_128: in otx_cpt_skcipher_xts_setkey()
444 case AES_KEYSIZE_128: in cpt_aes_setkey()
870 case AES_KEYSIZE_128: in otx_cpt_aead_cbc_aes_sha_setkey()
943 case AES_KEYSIZE_128 + AES_GCM_SALT_SIZE: in otx_cpt_aead_gcm_aes_setkey()
945 ctx->enc_key_len = AES_KEYSIZE_128; in otx_cpt_aead_gcm_aes_setkey()
/openbmc/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c424 case 2 * AES_KEYSIZE_128: in otx2_cpt_skcipher_xts_setkey()
462 case AES_KEYSIZE_128: in cpt_aes_setkey()
924 case AES_KEYSIZE_128: in otx2_cpt_aead_cbc_aes_sha_setkey()
990 case AES_KEYSIZE_128 + AES_GCM_SALT_SIZE: in otx2_cpt_aead_gcm_aes_setkey()
992 ctx->enc_key_len = AES_KEYSIZE_128; in otx2_cpt_aead_gcm_aes_setkey()
/openbmc/linux/arch/x86/crypto/
H A Daesni-intel_glue.c237 if (key_len != AES_KEYSIZE_128 && key_len != AES_KEYSIZE_192 && in aes_set_key_common()
501 if (ctx->key_length == AES_KEYSIZE_128) in aesni_ctr_enc_avx_tfm()
547 if (ctx->key_length == AES_KEYSIZE_128) in aesni_xctr_enc_avx_tfm()
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_req.h539 case AES_KEYSIZE_128: in flexi_aes_keylen()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_algs.c472 if (keylen == AES_KEYSIZE_128) { in qat_alg_xts_reverse_key()
519 case AES_KEYSIZE_128: in qat_alg_validate_key()
533 case AES_KEYSIZE_128 << 1: in qat_alg_validate_key()

123