Home
last modified time | relevance | path

Searched full:aes (Results 1 – 25 of 1378) sorted by relevance

12345678910>>...56

/OK3568_Linux_fs/kernel/drivers/crypto/mediatek/
H A Dmtk-aes.c5 * Driver for EIP97 AES acceleration.
9 * Some ideas are from atmel-aes.c drivers.
12 #include <crypto/aes.h>
27 /* AES-CBC/ECB/CTR/OFB/CFB command token */
31 /* AES-GCM command token */
40 /* AES transform information word 0 fields */
51 /* AES transform information word 1 fields */
63 /* AES flags */
77 * mtk_aes_info - hardware information of AES
84 * | AES KEY | 128/196/256 bits
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c3 * AMD Cryptographic Coprocessor (CCP) AES CMAC crypto API support
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.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()
[all …]
H A Dccp-crypto-aes.c3 * AMD Cryptographic Coprocessor (CCP) AES crypto API support
16 #include <crypto/aes.h>
31 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) in ccp_aes_complete()
45 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_setkey()
48 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_setkey()
51 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_setkey()
56 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey()
57 ctx->u.aes.key_len = key_len; in ccp_aes_setkey()
59 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_setkey()
60 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_setkey()
[all …]
H A Dccp-crypto-aes-galois.c3 * AMD Cryptographic Coprocessor (CCP) AES GCM crypto API support
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.key_len) in ccp_aes_gcm_crypt()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A DKbuild.fips14011 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o
12 aes-ce-blk-y := aes-glue-ce.o aes-ce.o
13 aes-neon-blk-y := aes-glue-neon.o aes-neon.o
16 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
17 aes-neon-bs-y := aes-neonbs-core.o aes-neonbs-glue.o
21 aes-ce-cipher.o aes-ce-blk.o aes-neon-blk.o \
22 sha256-arm64.o sha512-arm64.o aes-arm64.o \
23 aes-neon-bs.o
29 $(obj)/aes-glue-%-fips-arch.o: KBUILD_CFLAGS += $(FIPS140_CFLAGS)
30 $(obj)/aes-glue-%-fips-arch.o: $(crypto-arm64-fips-src)/aes-glue.c FORCE
H A DMakefile32 obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o
33 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o
35 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o
36 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o
38 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o
39 aes-ce-blk-y := aes-glue-ce.o aes-ce.o
41 obj-$(CONFIG_CRYPTO_AES_ARM64_NEON_BLK) += aes-neon-blk.o
42 aes-neon-blk-y := aes-glue-neon.o aes-neon.o
60 obj-$(CONFIG_CRYPTO_AES_ARM64) += aes-arm64.o
61 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/crypto/
H A Daes-ccm.c3 * Counter with CBC-MAC (CCM) with AES
13 #include "aes.h"
28 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
44 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
54 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
64 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
73 aes_encrypt(aes, x, x); in aes_ccm_auth()
79 aes_encrypt(aes, x, x); in aes_ccm_auth()
92 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/
H A Daes-ccm.c3 * Counter with CBC-MAC (CCM) with AES
13 #include "aes.h"
28 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
44 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
54 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
64 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
73 aes_encrypt(aes, x, x); in aes_ccm_auth()
79 aes_encrypt(aes, x, x); in aes_ccm_auth()
92 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/crypto/
H A Daes-ccm.c2 * Counter with CBC-MAC (CCM) with AES
12 #include "aes.h"
27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument
43 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
53 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
63 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 aes_encrypt(aes, x, x); in aes_ccm_auth()
78 aes_encrypt(aes, x, x); in aes_ccm_auth()
91 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/perf_reports/
H A DRK3562_perf.txt20 dma_fd: otpkey [AES-256] ECB ENCRYPT 605MB/s.
21 dma_fd: otpkey [AES-256] ECB DECRYPT 605MB/s.
22 dma_fd: otpkey [AES-256] CBC ENCRYPT 177MB/s.
23 dma_fd: otpkey [AES-256] CBC DECRYPT 606MB/s.
24 dma_fd: otpkey [AES-256] CTR ENCRYPT 606MB/s.
25 dma_fd: otpkey [AES-256] CTR DECRYPT 606MB/s.
34 virt: otpkey [AES-256] ECB ENCRYPT 278MB/s.
35 virt: otpkey [AES-256] ECB DECRYPT 278MB/s.
36 virt: otpkey [AES-256] CBC ENCRYPT 131MB/s.
37 virt: otpkey [AES-256] CBC DECRYPT 278MB/s.
[all …]
H A DRK3588_perf.txt19 dma_fd: otpkey [AES-256] ECB ENCRYPT 560MB/s.
20 dma_fd: otpkey [AES-256] ECB DECRYPT 560MB/s.
21 dma_fd: otpkey [AES-256] CBC ENCRYPT 288MB/s.
22 dma_fd: otpkey [AES-256] CBC DECRYPT 560MB/s.
23 dma_fd: otpkey [AES-256] CTR ENCRYPT 560MB/s.
24 dma_fd: otpkey [AES-256] CTR DECRYPT 560MB/s.
33 virt: otpkey [AES-256] ECB ENCRYPT 410MB/s.
34 virt: otpkey [AES-256] ECB DECRYPT 411MB/s.
35 virt: otpkey [AES-256] CBC ENCRYPT 242MB/s.
36 virt: otpkey [AES-256] CBC DECRYPT 411MB/s.
[all …]
H A DRK3528_perf.txt19 dma_fd: otpkey [AES-256] ECB ENCRYPT 764MB/s.
20 dma_fd: otpkey [AES-256] ECB DECRYPT 773MB/s.
21 dma_fd: otpkey [AES-256] CBC ENCRYPT 252MB/s.
22 dma_fd: otpkey [AES-256] CBC DECRYPT 771MB/s.
23 dma_fd: otpkey [AES-256] CTR ENCRYPT 762MB/s.
24 dma_fd: otpkey [AES-256] CTR DECRYPT 772MB/s.
33 virt: otpkey [AES-256] ECB ENCRYPT 276MB/s.
34 virt: otpkey [AES-256] ECB DECRYPT 276MB/s.
35 virt: otpkey [AES-256] CBC ENCRYPT 159MB/s.
36 virt: otpkey [AES-256] CBC DECRYPT 276MB/s.
[all …]
H A DRK3566_perf.txt20 dma_fd: otpkey [AES-256] ECB ENCRYPT 360MB/s.
21 dma_fd: otpkey [AES-256] ECB DECRYPT 360MB/s.
22 dma_fd: otpkey [AES-256] CBC ENCRYPT 164MB/s.
23 dma_fd: otpkey [AES-256] CBC DECRYPT 360MB/s.
24 dma_fd: otpkey [AES-256] CTR ENCRYPT 360MB/s.
25 dma_fd: otpkey [AES-256] CTR DECRYPT 360MB/s.
34 virt: otpkey [AES-256] ECB ENCRYPT 203MB/s.
35 virt: otpkey [AES-256] ECB DECRYPT 202MB/s.
36 virt: otpkey [AES-256] CBC ENCRYPT 122MB/s.
37 virt: otpkey [AES-256] CBC DECRYPT 196MB/s.
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Dfips140-selftests.c33 * our test vectors except the AES-CBC-CTS and DRBG ones were generated by the
51 * SHA-256 and AES library APIs, despite that being needed here.
54 #include <crypto/aes.h>
563 * Test for the AES library API.
565 * Since the AES library API may use its own AES implementation and the
567 * (it's just plain AES), we must test it directly.
569 * In contrast, we don't need to directly test the "aes" ciphers that
570 * are accessible through the crypto_cipher API (e.g. "aes-ce"), as they
571 * are covered indirectly by AES-CMAC and AES-ECB tests.
574 .alg = "aes",
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Daes.h3 * \file aes.h
5 * \brief This file contains AES definitions and functions.
7 * The Advanced Encryption Standard (AES) specifies a FIPS-approved
11 * The AES algorithm is a symmetric block cipher that can
18 * The AES-XTS block mode is standardized by NIST SP 800-38E
54 #define MBEDTLS_AES_ENCRYPT 1 /**< AES encryption. */
55 #define MBEDTLS_AES_DECRYPT 0 /**< AES decryption. */
65 …BLE -0x0023 /**< Feature not available. For example, an unsupported AES key size. */
68 #define MBEDTLS_ERR_AES_HW_ACCEL_FAILED -0x0025 /**< AES hardware accelerator fa…
84 * \brief The AES context-type definition.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/
H A Daes.h3 * \file aes.h
5 * \brief This file contains AES definitions and functions.
7 * The Advanced Encryption Standard (AES) specifies a FIPS-approved
11 * The AES algorithm is a symmetric block cipher that can
18 * The AES-XTS block mode is standardized by NIST SP 800-38E
54 #define MBEDTLS_AES_ENCRYPT 1 /**< AES encryption. */
55 #define MBEDTLS_AES_DECRYPT 0 /**< AES decryption. */
65 …BLE -0x0023 /**< Feature not available. For example, an unsupported AES key size. */
68 #define MBEDTLS_ERR_AES_HW_ACCEL_FAILED -0x0025 /**< AES hardware accelerator fa…
84 * \brief The AES context-type definition.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/
H A Daes.h3 * \file aes.h
5 * \brief This file contains AES definitions and functions.
7 * The Advanced Encryption Standard (AES) specifies a FIPS-approved
11 * The AES algorithm is a symmetric block cipher that can
18 * The AES-XTS block mode is standardized by NIST SP 800-38E
54 #define MBEDTLS_AES_ENCRYPT 1 /**< AES encryption. */
55 #define MBEDTLS_AES_DECRYPT 0 /**< AES decryption. */
65 …BLE -0x0023 /**< Feature not available. For example, an unsupported AES key size. */
68 #define MBEDTLS_ERR_AES_HW_ACCEL_FAILED -0x0025 /**< AES hardware accelerator fa…
84 * \brief The AES context-type definition.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Daes.h3 * \file aes.h
5 * \brief This file contains AES definitions and functions.
7 * The Advanced Encryption Standard (AES) specifies a FIPS-approved
11 * The AES algorithm is a symmetric block cipher that can
18 * The AES-XTS block mode is standardized by NIST SP 800-38E
54 #define MBEDTLS_AES_ENCRYPT 1 /**< AES encryption. */
55 #define MBEDTLS_AES_DECRYPT 0 /**< AES decryption. */
65 …BLE -0x0023 /**< Feature not available. For example, an unsupported AES key size. */
68 #define MBEDTLS_ERR_AES_HW_ACCEL_FAILED -0x0025 /**< AES hardware accelerator fa…
84 * \brief The AES context-type definition.
[all …]

12345678910>>...56