Home
last modified time | relevance | path

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

/linux/security/keys/trusted-keys/
H A Dtrusted_dcp.c58 __u8 blob_key[AES_KEYSIZE_128];
59 __u8 nonce[AES_KEYSIZE_128];
112 sg_init_one(&src_sg, in, AES_KEYSIZE_128); in do_dcp_crypto()
113 sg_init_one(&dst_sg, out, AES_KEYSIZE_128); in do_dcp_crypto()
114 skcipher_request_set_crypt(req, &src_sg, &dst_sg, AES_KEYSIZE_128, in do_dcp_crypto()
171 if (crypto_aead_setkey(aead, key, AES_KEYSIZE_128)) { in do_aead_crypto()
210 plain_blob_key = kmalloc(AES_KEYSIZE_128, GFP_KERNEL); in trusted_dcp_seal()
215 get_random_bytes(b->nonce, AES_KEYSIZE_128); in trusted_dcp_seal()
216 get_random_bytes(plain_blob_key, AES_KEYSIZE_128); in trusted_dcp_seal()
236 memzero_explicit(plain_blob_key, AES_KEYSIZE_128); in trusted_dcp_seal()
[all …]
/linux/include/crypto/
H A Daes.h14 #define AES_KEYSIZE_128 16 macro
40 case AES_KEYSIZE_128: in aes_check_keylen()
/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 Dgeode-aes.h50 u8 key[AES_KEYSIZE_128];
/linux/drivers/crypto/ti/
H A Ddthev2-aes.c132 if (keylen != AES_KEYSIZE_128 && keylen != AES_KEYSIZE_192 && keylen != AES_KEYSIZE_256) in dthe_aes_setkey()
163 if (keylen != 2 * AES_KEYSIZE_128 && in dthe_aes_xts_setkey()
193 if (ctx->keylen > AES_KEYSIZE_128) { in dthe_aes_set_ctrl_key()
210 if (ctx->keylen > AES_KEYSIZE_128) { in dthe_aes_set_ctrl_key()
223 if (ctx->keylen == AES_KEYSIZE_128) in dthe_aes_set_ctrl_key()
/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-cmac.c269 case AES_KEYSIZE_128: in ccp_aes_cmac_setkey()
/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()
/linux/arch/arm64/crypto/
H A Daes-ce-glue.c86 if (key_len != AES_KEYSIZE_128 && in ce_aes_expandkey()
/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()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c410 case 2 * AES_KEYSIZE_128: in otx_cpt_skcipher_xts_setkey()
445 case AES_KEYSIZE_128: in cpt_aes_setkey()
776 case AES_KEYSIZE_128: in aead_hmac_init()
862 case AES_KEYSIZE_128 + AES_GCM_SALT_SIZE: in otx_cpt_aead_gcm_aes_setkey()
864 ctx->enc_key_len = AES_KEYSIZE_128; in otx_cpt_aead_gcm_aes_setkey()
/linux/drivers/crypto/qce/
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()
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_req.h539 case AES_KEYSIZE_128: in flexi_aes_keylen()
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c114 if (keylen != AES_KEYSIZE_128 && keylen != AES_KEYSIZE_192 && in rk_aes_setkey()
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
H A Dchcr_ipsec.c181 if (keylen == AES_KEYSIZE_128) { in ch_ipsec_setkey()
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c78 #define AES_KEY_BYTES AES_KEYSIZE_128
/linux/drivers/crypto/caam/
H A Dcaamhash.c499 if (keylen != AES_KEYSIZE_128) in axcbc_setkey()
H A Dcaamalg_qi.c751 if (keylen != 2 * AES_KEYSIZE_128 && keylen != 2 * AES_KEYSIZE_256) in xts_skcipher_setkey()
H A Dcaamalg.c924 if (keylen != 2 * AES_KEYSIZE_128 && keylen != 2 * AES_KEYSIZE_256) in xts_skcipher_setkey()
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c461 case AES_KEYSIZE_128: in tegra_aes_kac_manifest()
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c579 case AES_KEYSIZE_128: in safexcel_context_control()