| /linux/arch/arm64/crypto/ |
| H A D | Makefile | 17 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE) += sm4-ce-cipher.o 18 sm4-ce-cipher-y := sm4-ce-cipher-glue.o sm4-ce-cipher-core.o 20 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_BLK) += sm4-ce.o 21 sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o 23 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_CCM) += sm4-ce-ccm.o 24 sm4-ce-ccm-y := sm4-ce-ccm-glue.o sm4-ce-ccm-core.o 26 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_GCM) += sm4-ce-gcm.o 27 sm4-ce-gcm-y := sm4-ce-gcm-glue.o sm4-ce-gcm-core.o 29 obj-$(CONFIG_CRYPTO_SM4_ARM64_NEON_BLK) += sm4-neon.o 30 sm4-neon-y := sm4-neon-glue.o sm4-neon-core.o
|
| H A D | sm4-neon-glue.c | 3 * SM4 Cipher Algorithm, using ARMv8 NEON 5 * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html 19 #include <crypto/sm4.h> 191 .cra_name = "ecb(sm4)", 192 .cra_driver_name = "ecb-sm4-neon", 205 .cra_name = "cbc(sm4)", 206 .cra_driver_name = "cbc-sm4-neon", 220 .cra_name = "ctr(sm4)", 221 .cra_driver_name = "ctr-sm4-neon", 250 MODULE_DESCRIPTION("SM4 ECB/CBC/CTR using ARMv8 NEON"); [all …]
|
| H A D | sm4-ce-cipher-glue.c | 6 #include <crypto/sm4.h> 12 MODULE_ALIAS_CRYPTO("sm4"); 13 MODULE_ALIAS_CRYPTO("sm4-ce"); 14 MODULE_DESCRIPTION("SM4 symmetric cipher using ARMv8 Crypto Extensions"); 55 .cra_name = "sm4", 56 .cra_driver_name = "sm4-ce", 81 module_cpu_feature_match(SM4, sm4_ce_mod_init);
|
| H A D | sm4-ce.h | 3 * SM4 common functions for Crypto Extensions
|
| H A D | sm4-ce-ccm-core.S | 3 * SM4-CCM AEAD Algorithm using ARMv8 Crypto Extensions 13 #include "sm4-ce-asm.h"
|
| /linux/drivers/crypto/intel/keembay/ |
| H A D | Kconfig | 2 tristate "Support for Intel Keem Bay OCS AES/SM4 HW acceleration" 10 SM4 cipher hardware acceleration for use with Crypto API. 13 cbc(aes), ctr(aes), ccm(aes), gcm(aes), cbc(sm4), ctr(sm4), ccm(sm4) 14 and gcm(sm4). 17 enabled: ecb(aes), cts(cbc(aes)), ecb(sm4) and cts(cbc(sm4)). 20 bool "Support for Intel Keem Bay OCS AES/SM4 ECB HW acceleration" 24 AES/SM4 ECB mode hardware acceleration for use with Crypto API. 26 Provides OCS version of ecb(aes) and ecb(sm4) 28 Intel does not recommend use of ECB mode with AES/SM4. 31 bool "Support for Intel Keem Bay OCS AES/SM4 CTS HW acceleration" [all …]
|
| /linux/arch/riscv/crypto/ |
| H A D | sm4-riscv64-glue.c | 3 * SM4 using the RISC-V vector crypto extensions 16 #include <crypto/sm4.h> 74 .cra_name = "sm4", 75 .cra_driver_name = "sm4-riscv64-zvksed-zvkb", 104 MODULE_DESCRIPTION("SM4 (RISC-V accelerated)"); 107 MODULE_ALIAS_CRYPTO("sm4");
|
| H A D | Makefile | 13 obj-$(CONFIG_CRYPTO_SM4_RISCV64) += sm4-riscv64.o 14 sm4-riscv64-y := sm4-riscv64-glue.o sm4-riscv64-zvksed-zvkb.o
|
| H A D | Kconfig | 44 tristate "Ciphers: SM4 (ShangMi 4)" 49 SM4 block cipher algorithm (OSCCA GB/T 32907-2016, 52 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
|
| H A D | sm4-riscv64-zvksed-zvkb.S | 43 // - RISC-V Vector SM4 Block Cipher extension ('Zvksed') 92 // Do the 32 rounds of SM4, 4 at a time.
|
| /linux/arch/x86/crypto/ |
| H A D | Makefile | 66 obj-$(CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64) += sm4-aesni-avx-x86_64.o 67 sm4-aesni-avx-x86_64-y := sm4-aesni-avx-asm_64.o sm4_aesni_avx_glue.o 69 obj-$(CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64) += sm4-aesni-avx2-x86_64.o 70 sm4-aesni-avx2-x86_64-y := sm4-aesni-avx2-asm_64.o sm4_aesni_avx2_glue.o
|
| H A D | Kconfig | 178 tristate "Ciphers: SM4 with modes: ECB, CBC, CTR (AES-NI/AVX)" 184 Length-preserving ciphers: SM4 cipher algorithms 192 we can use the AES S-Box to simulate the SM4 S-Box to achieve the 198 tristate "Ciphers: SM4 with modes: ECB, CBC, CTR (AES-NI/AVX2)" 205 Length-preserving ciphers: SM4 cipher algorithms 213 we can use the AES S-Box to simulate the SM4 S-Box to achieve the
|
| H A D | sm4-aesni-avx2-asm_64.S | 3 * SM4 Cipher Algorithm, AES-NI/AVX2 optimized. 5 * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html 12 /* Based on SM4 AES-NI work by libgcrypt and Markku-Juhani O. Saarinen at: 104 * These allow exposing SM4 S-Box from AES SubByte. 107 /* pre-SubByte affine transform, from SM4 field to AES field. */ 113 /* post-SubByte affine transform, from AES field to SM4 field. */
|
| H A D | sm4-aesni-avx-asm_64.S | 3 * SM4 Cipher Algorithm, AES-NI/AVX optimized. 5 * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html 12 /* Based on SM4 AES-NI work by libgcrypt and Markku-Juhani O. Saarinen at: 89 * These allow exposing SM4 S-Box from AES SubByte. 92 /* pre-SubByte affine transform, from SM4 field to AES field. */ 98 /* post-SubByte affine transform, from AES field to SM4 field. */
|
| H A D | sm4-avx.h | 6 #include <crypto/sm4.h>
|
| /linux/include/crypto/ |
| H A D | sm4.h | 4 * Common values for the SM4 algorithm 29 * sm4_expandkey - Expands the SM4 key as described in GB/T 32907-2016 41 * sm4_crypt_block - Encrypt or decrypt a single SM4 block
|
| /linux/crypto/ |
| H A D | sm4.c | 3 * SM4, as specified in 4 * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html 12 #include <crypto/sm4.h> 111 * sm4_expandkey - Expands the SM4 key as described in GB/T 32907-2016 155 * sm4_crypt_block - Encrypt or decrypt a single SM4 block 183 MODULE_DESCRIPTION("Generic SM4 library");
|
| H A D | Kconfig | 533 tristate "SM4 (ShangMi 4)" 537 SM4 cipher algorithms (OSCCA GB/T 32907-2016, 540 SM4 (GBT.32907-2016) is a cryptographic standard issued by the 549 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
|
| /linux/Documentation/translations/zh_TW/arch/arm64/ |
| H A D | elf_hwcaps.rst | 125 ID_AA64ISAR0_EL1.SM4 == 0b0001 表示有此功能。 193 ID_AA64ZFR0_EL1.SM4 == 0b0001 表示有此功能。
|
| /linux/Documentation/translations/zh_CN/arch/arm64/ |
| H A D | elf_hwcaps.rst | 122 ID_AA64ISAR0_EL1.SM4 == 0b0001 表示有此功能。 190 ID_AA64ZFR0_EL1.SM4 == 0b0001 表示有此功能。
|
| /linux/Documentation/devicetree/bindings/crypto/ |
| H A D | intel,keembay-ocs-aes.yaml | 14 hardware-accelerated AES/SM4 encryption/decryption.
|
| /linux/drivers/crypto/hisilicon/ |
| H A D | Kconfig | 36 It provides AES, SM4, and 3DES algorithms with ECB
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_cipher.c | 24 #include <crypto/sm4.h> 3059 .cra_name = "ecb(sm4)", 3060 .cra_driver_name = "safexcel-ecb-sm4", 3097 .cra_name = "cbc(sm4)", 3098 .cra_driver_name = "safexcel-cbc-sm4", 3150 .cra_name = "rfc3686(ctr(sm4))", 3151 .cra_driver_name = "safexcel-ctr-sm4", 3210 .cra_name = "authenc(hmac(sha1),cbc(sm4))", 3211 .cra_driver_name = "safexcel-authenc-hmac-sha1-cbc-sm4", 3320 .cra_name = "authenc(hmac(sm3),cbc(sm4))", [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | elf_hwcaps.rst | 131 Functionality implied by ID_AA64ISAR0_EL1.SM4 == 0b0001. 252 ID_AA64ZFR0_EL1.SM4 == 0b0001.
|
| /linux/fs/crypto/ |
| H A D | keysetup.c | 49 .friendly_name = "SM4-XTS", 50 .cipher_str = "xts(sm4)", 57 .friendly_name = "SM4-CBC-CTS", 58 .cipher_str = "cts(cbc(sm4))",
|