Home
last modified time | relevance | path

Searched refs:aes (Results 1 – 25 of 46) sorted by relevance

12

/drivers/crypto/ccp/
A Dccp-crypto-aes-cmac.c159 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_do_cmac_update()
160 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_do_cmac_update()
162 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_do_cmac_update()
163 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_do_cmac_update()
170 rctx->cmd.u.aes.cmac_key_len = ctx->u.aes.kn_len; in ccp_do_cmac_update()
292 memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key)); in ccp_aes_cmac_setkey()
293 aes_encrypt(&aes, ctx->u.aes.key, ctx->u.aes.key); in ccp_aes_cmac_setkey()
294 memzero_explicit(&aes, sizeof(aes)); in ccp_aes_cmac_setkey()
322 ctx->u.aes.kn_len = sizeof(ctx->u.aes.k1); in ccp_aes_cmac_setkey()
323 sg_init_one(&ctx->u.aes.k1_sg, ctx->u.aes.k1, sizeof(ctx->u.aes.k1)); in ccp_aes_cmac_setkey()
[all …]
A Dccp-crypto-aes-galois.c49 ctx->u.aes.key_len = key_len; in ccp_aes_gcm_setkey()
52 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_gcm_setkey()
86 if (!ctx->u.aes.key_len) in ccp_aes_gcm_crypt()
120 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_aes_gcm_crypt()
121 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_gcm_crypt()
123 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_aes_gcm_crypt()
124 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_aes_gcm_crypt()
125 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_gcm_crypt()
127 rctx->cmd.u.aes.src = req->src; in ccp_aes_gcm_crypt()
132 rctx->cmd.u.aes.dst = req->dst; in ccp_aes_gcm_crypt()
[all …]
A Dccp-crypto-aes.c58 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey()
62 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_setkey()
75 if (!ctx->u.aes.key_len) in ccp_aes_crypt()
96 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_aes_crypt()
97 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_crypt()
98 rctx->cmd.u.aes.action = in ccp_aes_crypt()
100 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_aes_crypt()
101 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_aes_crypt()
102 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_crypt()
126 ctx->u.aes.key_len = 0; in ccp_aes_init_tfm()
[all …]
A Dccp-ops.c497 if (!aes->key || !aes->iv || !aes->src) in ccp_run_aes_cmac_cmd()
518 op.u.aes.type = aes->type; in ccp_run_aes_cmac_cmd()
519 op.u.aes.mode = aes->mode; in ccp_run_aes_cmac_cmd()
520 op.u.aes.action = aes->action; in ccp_run_aes_cmac_cmd()
714 wa->op.u.aes.type = aes->type; in ccp_run_aes_gcm_cmd()
783 wa->op.u.aes.action = aes->action; in ccp_run_aes_gcm_cmd()
866 wa->op.u.aes.type = aes->type; in ccp_run_aes_gcm_cmd()
946 if (!aes->key || !aes->src || !aes->dst) in ccp_run_aes_cmd()
967 op.u.aes.type = aes->type; in ccp_run_aes_cmd()
968 op.u.aes.mode = aes->mode; in ccp_run_aes_cmd()
[all …]
A Dccp-crypto-aes-xts.c91 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey()
95 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey()
98 ctx->u.aes.key_len = key_len / 2; in ccp_aes_xts_setkey()
99 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_xts_setkey()
116 if (!ctx->u.aes.key_len) in ccp_aes_xts_crypt()
142 (ctx->u.aes.key_len != AES_KEYSIZE_128)) in ccp_aes_xts_crypt()
145 (ctx->u.aes.key_len != AES_KEYSIZE_256)) in ccp_aes_xts_crypt()
152 ctx->u.aes.tfm_skcipher); in ccp_aes_xts_crypt()
174 rctx->cmd.u.xts.key = &ctx->u.aes.key_sg; in ccp_aes_xts_crypt()
203 ctx->u.aes.key_len = 0; in ccp_aes_xts_init_tfm()
[all …]
A DMakefile20 ccp-crypto-aes.o \
21 ccp-crypto-aes-cmac.o \
22 ccp-crypto-aes-xts.o \
23 ccp-crypto-aes-galois.o \
A Dccp-dev-v5.c98 } aes; member
137 #define CCP_AES_SIZE(p) ((p)->aes.size)
138 #define CCP_AES_ENCRYPT(p) ((p)->aes.encrypt)
139 #define CCP_AES_MODE(p) ((p)->aes.mode)
140 #define CCP_AES_TYPE(p) ((p)->aes.type)
297 CCP_AES_ENCRYPT(&function) = op->u.aes.action; in ccp5_perform_aes()
298 CCP_AES_MODE(&function) = op->u.aes.mode; in ccp5_perform_aes()
299 CCP_AES_TYPE(&function) = op->u.aes.type; in ccp5_perform_aes()
300 CCP_AES_SIZE(&function) = op->u.aes.size; in ccp5_perform_aes()
1099 .aes = ccp5_perform_aes,
A Dccp-dev-v3.c154 | (op->u.aes.type << REQ1_AES_TYPE_SHIFT) in ccp_perform_aes()
155 | (op->u.aes.mode << REQ1_AES_MODE_SHIFT) in ccp_perform_aes()
156 | (op->u.aes.action << REQ1_AES_ACTION_SHIFT) in ccp_perform_aes()
167 if (op->u.aes.mode == CCP_AES_MODE_CFB) in ccp_perform_aes()
568 .aes = ccp_perform_aes,
/drivers/net/wireless/ti/wl12xx/
A Ddebugfs.c80 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, "%u");
81 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, "%u");
82 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, "%u");
83 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, "%u");
84 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, "%u");
180 DEBUGFS_FWSTATS_ADD(aes, encrypt_fail); in wl12xx_debugfs_add_files()
181 DEBUGFS_FWSTATS_ADD(aes, decrypt_fail); in wl12xx_debugfs_add_files()
182 DEBUGFS_FWSTATS_ADD(aes, encrypt_packets); in wl12xx_debugfs_add_files()
183 DEBUGFS_FWSTATS_ADD(aes, decrypt_packets); in wl12xx_debugfs_add_files()
184 DEBUGFS_FWSTATS_ADD(aes, encrypt_interrupt); in wl12xx_debugfs_add_files()
[all …]
/drivers/crypto/nx/
A DMakefile4 nx-aes-cbc.o \
5 nx-aes-ecb.o \
6 nx-aes-gcm.o \
7 nx-aes-ccm.o \
8 nx-aes-ctr.o \
9 nx-aes-xcbc.o \
/drivers/crypto/
A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o
16 obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o
23 obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes-driver.o
24 omap-aes-driver-objs := omap-aes.o omap-aes-gcm.o
27 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o
/drivers/net/wireless/ti/wl1251/
A Ddebugfs.c302 DEBUGFS_FWSTATS_DEL(aes, encrypt_fail); in wl1251_debugfs_delete_files()
303 DEBUGFS_FWSTATS_DEL(aes, decrypt_fail); in wl1251_debugfs_delete_files()
304 DEBUGFS_FWSTATS_DEL(aes, encrypt_packets); in wl1251_debugfs_delete_files()
305 DEBUGFS_FWSTATS_DEL(aes, decrypt_packets); in wl1251_debugfs_delete_files()
306 DEBUGFS_FWSTATS_DEL(aes, encrypt_interrupt); in wl1251_debugfs_delete_files()
307 DEBUGFS_FWSTATS_DEL(aes, decrypt_interrupt); in wl1251_debugfs_delete_files()
401 DEBUGFS_FWSTATS_ADD(aes, encrypt_fail); in wl1251_debugfs_add_files()
402 DEBUGFS_FWSTATS_ADD(aes, decrypt_fail); in wl1251_debugfs_add_files()
403 DEBUGFS_FWSTATS_ADD(aes, encrypt_packets); in wl1251_debugfs_add_files()
404 DEBUGFS_FWSTATS_ADD(aes, decrypt_packets); in wl1251_debugfs_add_files()
[all …]
/drivers/crypto/intel/keembay/
A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4) += keembay-ocs-aes.o
5 keembay-ocs-aes-objs := keembay-ocs-aes-core.o ocs-aes.o
A DKconfig13 cbc(aes), ctr(aes), ccm(aes), gcm(aes), cbc(sm4), ctr(sm4), ccm(sm4)
17 enabled: ecb(aes), cts(cbc(aes)), ecb(sm4) and cts(cbc(sm4)).
26 Provides OCS version of ecb(aes) and ecb(sm4)
38 Provides OCS version of cts(cbc(aes)) and cts(cbc(sm4)).
/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c377 struct crypto_aes_ctx aes; in safexcel_skcipher_aes_setkey() local
398 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aes_setkey()
409 struct crypto_aes_ctx aes; in safexcel_aead_setkey() local
1361 struct crypto_aes_ctx aes; in safexcel_skcipher_aesctr_setkey() local
1387 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aesctr_setkey()
2431 aes.key_enc[i]) { in safexcel_skcipher_aesxts_setkey()
2444 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aesxts_setkey()
2516 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_gcm_setkey()
2551 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_gcm_setkey()
2617 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_ccm_setkey()
[all …]
A Dsafexcel_hash.c33 struct crypto_aes_ctx *aes; member
1908 struct crypto_aes_ctx aes; in safexcel_cbcmac_setkey() local
1911 ret = aes_expandkey(&aes, key, len); in safexcel_cbcmac_setkey()
1931 memzero_explicit(&aes, sizeof(aes)); in safexcel_cbcmac_setkey()
1979 ret = aes_expandkey(ctx->aes, key, len); in safexcel_xcbcmac_setkey()
1986 aes_encrypt(ctx->aes, (u8 *)key_tmp, in safexcel_xcbcmac_setkey()
1993 ret = aes_expandkey(ctx->aes, in safexcel_xcbcmac_setkey()
2011 ctx->aes = kmalloc(sizeof(*ctx->aes), GFP_KERNEL); in safexcel_xcbcmac_cra_init()
2012 return ctx->aes == NULL ? -ENOMEM : 0; in safexcel_xcbcmac_cra_init()
2019 kfree(ctx->aes); in safexcel_xcbcmac_cra_exit()
[all …]
/drivers/crypto/marvell/cesa/
A Dcipher.c31 struct crypto_aes_ctx aes; member
272 ret = aes_expandkey(&ctx->aes, key, len); in mv_cesa_aes_setkey()
276 remaining = (ctx->aes.key_length - 16) / 4; in mv_cesa_aes_setkey()
277 offset = ctx->aes.key_length + 24 - remaining; in mv_cesa_aes_setkey()
279 ctx->aes.key_dec[4 + i] = ctx->aes.key_enc[offset + i]; in mv_cesa_aes_setkey()
712 key = ctx->aes.key_dec; in mv_cesa_aes_op()
714 key = ctx->aes.key_enc; in mv_cesa_aes_op()
716 for (i = 0; i < ctx->aes.key_length / sizeof(u32); i++) in mv_cesa_aes_op()
719 if (ctx->aes.key_length == 24) in mv_cesa_aes_op()
721 else if (ctx->aes.key_length == 32) in mv_cesa_aes_op()
/drivers/crypto/starfive/
A Djh7110-aes.c231 rctx->csr.aes.v = 0; in starfive_aes_hw_init()
232 rctx->csr.aes.aesrst = 1; in starfive_aes_hw_init()
238 rctx->csr.aes.v = 0; in starfive_aes_hw_init()
242 rctx->csr.aes.keymode = STARFIVE_AES_KEYMODE_128; in starfive_aes_hw_init()
245 rctx->csr.aes.keymode = STARFIVE_AES_KEYMODE_192; in starfive_aes_hw_init()
248 rctx->csr.aes.keymode = STARFIVE_AES_KEYMODE_256; in starfive_aes_hw_init()
252 rctx->csr.aes.mode = hw_mode; in starfive_aes_hw_init()
253 rctx->csr.aes.cmode = !is_encrypt(cryp); in starfive_aes_hw_init()
254 rctx->csr.aes.stmode = STARFIVE_AES_MODE_XFB_1; in starfive_aes_hw_init()
257 rctx->csr.aes.delay_aes = 1; in starfive_aes_hw_init()
[all …]
A DMakefile4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
/drivers/crypto/intel/qat/qat_c62x/
A Dadf_c62x_hw_data.c94 int aes = self->get_num_aes(self); in get_sku() local
96 if (aes == 8) in get_sku()
98 else if (aes == 10) in get_sku()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A Dchtls_hw.c250 struct crypto_aes_ctx aes; in chtls_key_info() local
294 ret = aes_expandkey(&aes, key, keylen); in chtls_key_info()
299 aes_encrypt(&aes, ghash_h, ghash_h); in chtls_key_info()
300 memzero_explicit(&aes, sizeof(aes)); in chtls_key_info()
/drivers/crypto/intel/qat/qat_c3xxx/
A Dadf_c3xxx_hw_data.c94 int aes = self->get_num_aes(self); in get_sku() local
96 if (aes == 6) in get_sku()
/drivers/crypto/intel/qat/qat_common/
A Dqat_algs.c256 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); in qat_alg_aead_init_enc_session()
257 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_enc_session()
342 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg, mode); in qat_alg_aead_init_dec_session()
343 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_dec_session()
440 memcpy(cd->aes.key, key, keylen); in qat_alg_skcipher_init_com()
461 enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); in qat_alg_skcipher_init_enc()
500 dec_cd->aes.cipher_config.val = in qat_alg_skcipher_init_dec()
507 dec_cd->aes.cipher_config.val = in qat_alg_skcipher_init_dec()
510 dec_cd->aes.cipher_config.val = in qat_alg_skcipher_init_dec()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
A Dchcr_ipsec.c173 struct crypto_aes_ctx aes; in ch_ipsec_setkey() local
207 ret = aes_expandkey(&aes, key, keylen); in ch_ipsec_setkey()
213 aes_encrypt(&aes, ghash_h, ghash_h); in ch_ipsec_setkey()
214 memzero_explicit(&aes, sizeof(aes)); in ch_ipsec_setkey()
/drivers/crypto/xilinx/
A DMakefile2 obj-$(CONFIG_CRYPTO_DEV_ZYNQMP_AES) += zynqmp-aes-gcm.o

Completed in 53 milliseconds

12