/linux/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-cmac.c | 16 #include <crypto/aes.h> 69 if (!ctx->u.aes.key_len) in ccp_do_cmac_update() 153 cmac_key_sg = (need_pad) ? &ctx->u.aes.k2_sg in ccp_do_cmac_update() 154 : &ctx->u.aes.k1_sg; in ccp_do_cmac_update() 159 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() 161 rctx->cmd.u.aes.action = CCP_AES_ACTION_ENCRYPT; in ccp_do_cmac_update() 162 rctx->cmd.u.aes in ccp_do_cmac_update() 264 struct crypto_aes_ctx aes; ccp_aes_cmac_setkey() local [all...] |
H A D | ccp-crypto-aes-galois.c | 17 #include <crypto/aes.h> 36 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_gcm_setkey() 39 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_gcm_setkey() 42 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_gcm_setkey() 48 ctx->u.aes.mode = CCP_AES_MODE_GCM; in ccp_aes_gcm_setkey() 49 ctx->u.aes.key_len = key_len; in ccp_aes_gcm_setkey() 51 memcpy(ctx->u.aes.key, key, 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 in ccp_aes_gcm_crypt() [all...] |
H A D | ccp-crypto-aes.c | 10 #include <crypto/aes.h> 33 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) in ccp_aes_complete() 47 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_setkey() 50 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_setkey() 53 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_setkey() 58 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey() 59 ctx->u.aes.key_len = key_len; in ccp_aes_setkey() 61 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_setkey() 62 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes in ccp_aes_setkey() [all...] |
H A D | ccp-ops.c | 479 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmac_cmd() local 486 if (!((aes->key_len == AES_KEYSIZE_128) || in ccp_run_aes_cmac_cmd() 487 (aes->key_len == AES_KEYSIZE_192) || in ccp_run_aes_cmac_cmd() 488 (aes->key_len == AES_KEYSIZE_256))) in ccp_run_aes_cmac_cmd() 491 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd() 494 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd() 497 if (!aes->key || !aes->iv || !aes in ccp_run_aes_cmac_cmd() 635 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_gcm_cmd() local 928 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_cmd() local [all...] |
H A D | ccp-crypto-aes-xts.c | 15 #include <crypto/aes.h> 29 .name = "xts(aes)", 30 .drv_name = "xts-aes-ccp", 91 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() 101 return crypto_skcipher_setkey(ctx->u.aes.tfm_skcipher, key, key_len); in ccp_aes_xts_setkey() 116 if (!ctx->u.aes in ccp_aes_xts_crypt() [all...] |
H A D | Makefile | 20 ccp-crypto-aes.o \ 21 ccp-crypto-aes-cmac.o \ 22 ccp-crypto-aes-xts.o \ 23 ccp-crypto-aes-galois.o \
|
H A D | ccp-dev-v5.c | 98 } 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 [all...] |
/linux/arch/arm64/crypto/ |
H A D | Makefile | 38 obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 39 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 41 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o 42 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o 44 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o 45 aes [all...] |
/linux/arch/arm/crypto/ |
H A D | Makefile | 6 obj-$(CONFIG_CRYPTO_AES_ARM) += aes-arm.o 7 obj-$(CONFIG_CRYPTO_AES_ARM_BS) += aes-arm-bs.o 12 obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o 15 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o 16 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 18 aes [all...] |
/linux/arch/powerpc/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_AES_PPC_SPE) += aes-ppc-spe.o 10 obj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o 14 aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o 16 aes-gcm-p10-crypto-y := aes [all...] |
/linux/arch/riscv/crypto/ |
H A D | Makefile | 3 obj-$(CONFIG_CRYPTO_AES_RISCV64) += aes-riscv64.o 4 aes-riscv64-y := aes-riscv64-glue.o aes-riscv64-zvkned.o \ 5 aes-riscv64-zvkned-zvbb-zvkg.o aes-riscv64-zvkned-zvkb.o
|
/linux/drivers/crypto/nx/ |
H A D | Makefile | 4 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 \
|
/linux/drivers/crypto/ |
H A D | Makefile | 4 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
|
/linux/drivers/net/wireless/ti/wl12xx/ |
H A D | debugfs.c | 80 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"); 85 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_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_packet in wl12xx_debugfs_add_files() [all...] |
/linux/drivers/crypto/intel/keembay/ |
H A D | Makefile | 4 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
|
H A D | Kconfig | 13 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)).
|
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | debugfs.c | 162 DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, 20, "%u"); 163 DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, 20, "%u"); 164 DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, 20, "%u"); 165 DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, 20, "%u"); 166 DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, 20, "%u"); 167 DEBUGFS_FWSTATS_FILE(aes, decrypt_interrupt, 20, "%u"); 302 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_packet in wl1251_debugfs_delete_files() [all...] |
/linux/arch/sparc/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_AES_SPARC64) += aes-sparc64.o 14 aes-sparc64-y := aes_asm.o aes_glue.o
|
/linux/drivers/crypto/marvell/cesa/ |
H A D | cipher.c | 12 #include <crypto/aes.h> 31 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 in mv_cesa_aes_op() [all...] |
/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-crypt.rst | 25 aes-cbc-essiv:sha256 26 aes-xts-plain64 40 capi:cbc(aes)-essiv:sha256 41 capi:xts(aes)-plain64 45 capi:gcm(aes)-random 46 capi:authenc(hmac(sha256),xts(aes))-random 199 dmsetup create crypt1 --table "0 `blockdev --getsz $1` crypt aes-cbc-essiv:sha256 babebabebabebabebabebabebabebabe 0 $1 0" 205 dmsetup create crypt2 --table "0 `blockdev --getsize $1` crypt aes-cbc-essiv:sha256 :32:logon:my_prefix:my_key 0 $1 0"
|
/linux/drivers/crypto/intel/qat/qat_c62x/ |
H A D | adf_c62x_hw_data.c | 94 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()
|
/linux/arch/x86/crypto/ |
H A D | Makefile | 47 aesni-intel-$(CONFIG_64BIT) += aes-ctr-avx-x86_64.o \ 48 aes-gcm-aesni-x86_64.o \ 49 aes-xts-avx-x86_64.o 51 aesni-intel-$(CONFIG_64BIT) += aes-gcm-avx10-x86_64.o
|
/linux/Documentation/crypto/ |
H A D | architecture.rst | 38 - aes 40 - ecb(aes) 42 - cmac(aes) 44 - ccm(aes) 46 - rfc4106(gcm(aes)) 52 - authenc(hmac(sha1),cbc(aes)) 54 In these examples, "aes" and "sha1" are the ciphers and all others are 104 straight C. Now, when using the string "aes" with the kernel crypto API, 258 generic C implementations (gcm.c, aes-generic.c, ctr.c, ghash-generic.c, 311 | (aes) | [all...] |
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_hw.c | 250 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()
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap2.dtsi | 58 aes: aes@480a6000 { label 59 compatible = "ti,omap2-aes"; 60 ti,hwmods = "aes";
|