Home
last modified time | relevance | path

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

12345

/third_party/openssl/test/recipes/30-test_evp_data/
Devpccmcavs.txt13 Cipher = aes-128-ccm
21 Cipher = aes-128-ccm
31 Cipher = aes-128-ccm
41 Cipher = aes-128-ccm
51 Cipher = aes-128-ccm
59 Cipher = aes-128-ccm
69 Cipher = aes-128-ccm
79 Cipher = aes-128-ccm
89 Cipher = aes-128-ccm
99 Cipher = aes-128-ccm
[all …]
Devpciph.txt646 Cipher = aes-128-ctr
653 Cipher = aes-128-ctr
660 Cipher = aes-128-ctr
667 Cipher = aes-192-ctr
674 Cipher = aes-192-ctr
681 Cipher = aes-192-ctr
688 Cipher = aes-256-ctr
695 Cipher = aes-256-ctr
702 Cipher = aes-256-ctr
710 Cipher = aes-128-ctr
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Daes-ccm.c28 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
102 aes_encrypt(aes, a, out); in aes_ccm_encr()
109 aes_encrypt(aes, a, out); in aes_ccm_encr()
[all …]
DMakefile11 aes-cbc.o \
12 aes-ccm.o \
13 aes-ctr.o \
14 aes-eax.o \
15 aes-encblock.o \
16 aes-gcm.o \
17 aes-internal.o \
18 aes-internal-dec.o \
19 aes-internal-enc.o \
20 aes-omac1.o \
[all …]
Daes-gcm.c143 static void aes_gctr(void *aes, const u8 *icb, const u8 *x, size_t xlen, u8 *y) in aes_gctr() argument
158 aes_encrypt(aes, cb, ypos); in aes_gctr()
168 aes_encrypt(aes, cb, tmp); in aes_gctr()
177 void *aes; in aes_gcm_init_hash_subkey() local
179 aes = aes_encrypt_init(key, key_len); in aes_gcm_init_hash_subkey()
180 if (aes == NULL) in aes_gcm_init_hash_subkey()
185 aes_encrypt(aes, H, H); in aes_gcm_init_hash_subkey()
188 return aes; in aes_gcm_init_hash_subkey()
215 static void aes_gcm_gctr(void *aes, const u8 *J0, const u8 *in, size_t len, in aes_gcm_gctr() argument
225 aes_gctr(aes, J0inc, in, len, out); in aes_gcm_gctr()
[all …]
Dcrypto_internal-cipher.c29 } aes; member
65 ctx->u.aes.ctx_enc = aes_encrypt_init(key, key_len); in crypto_cipher_init()
66 if (ctx->u.aes.ctx_enc == NULL) { in crypto_cipher_init()
70 ctx->u.aes.ctx_dec = aes_decrypt_init(key, key_len); in crypto_cipher_init()
71 if (ctx->u.aes.ctx_dec == NULL) { in crypto_cipher_init()
72 aes_encrypt_deinit(ctx->u.aes.ctx_enc); in crypto_cipher_init()
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
124 ctx->u.aes.cbc); in crypto_cipher_encrypt()
[all …]
Dcrypto_wolfssl.c310 Aes *aes; in aes_encrypt_init() local
315 aes = os_malloc(sizeof(Aes)); in aes_encrypt_init()
316 if (!aes) in aes_encrypt_init()
319 if (wc_AesSetKey(aes, key, len, NULL, AES_ENCRYPTION) < 0) { in aes_encrypt_init()
320 os_free(aes); in aes_encrypt_init()
324 return aes; in aes_encrypt_init()
343 Aes *aes; in aes_decrypt_init() local
348 aes = os_malloc(sizeof(Aes)); in aes_decrypt_init()
349 if (!aes) in aes_decrypt_init()
352 if (wc_AesSetKey(aes, key, len, NULL, AES_DECRYPTION) < 0) { in aes_decrypt_init()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Daes-ccm.c28 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
102 aes_encrypt(aes, a, out); in aes_ccm_encr()
109 aes_encrypt(aes, a, out); in aes_ccm_encr()
[all …]
DMakefile22 aes-cbc.o \
23 aes-ccm.o \
24 aes-ctr.o \
25 aes-eax.o \
26 aes-encblock.o \
27 aes-gcm.o \
28 aes-internal.o \
29 aes-internal-dec.o \
30 aes-internal-enc.o \
31 aes-omac1.o \
[all …]
Daes-gcm.c143 static void aes_gctr(void *aes, const u8 *icb, const u8 *x, size_t xlen, u8 *y) in aes_gctr() argument
158 aes_encrypt(aes, cb, ypos); in aes_gctr()
168 aes_encrypt(aes, cb, tmp); in aes_gctr()
177 void *aes; in aes_gcm_init_hash_subkey() local
179 aes = aes_encrypt_init(key, key_len); in aes_gcm_init_hash_subkey()
180 if (aes == NULL) in aes_gcm_init_hash_subkey()
185 aes_encrypt(aes, H, H); in aes_gcm_init_hash_subkey()
188 return aes; in aes_gcm_init_hash_subkey()
215 static void aes_gcm_gctr(void *aes, const u8 *J0, const u8 *in, size_t len, in aes_gcm_gctr() argument
225 aes_gctr(aes, J0inc, in, len, out); in aes_gcm_gctr()
[all …]
Dcrypto_internal-cipher.c29 } aes; member
65 ctx->u.aes.ctx_enc = aes_encrypt_init(key, key_len); in crypto_cipher_init()
66 if (ctx->u.aes.ctx_enc == NULL) { in crypto_cipher_init()
70 ctx->u.aes.ctx_dec = aes_decrypt_init(key, key_len); in crypto_cipher_init()
71 if (ctx->u.aes.ctx_dec == NULL) { in crypto_cipher_init()
72 aes_encrypt_deinit(ctx->u.aes.ctx_enc); in crypto_cipher_init()
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
124 ctx->u.aes.cbc); in crypto_cipher_encrypt()
[all …]
Dcrypto_wolfssl.c310 Aes *aes; in aes_encrypt_init() local
315 aes = os_malloc(sizeof(Aes)); in aes_encrypt_init()
316 if (!aes) in aes_encrypt_init()
319 if (wc_AesSetKey(aes, key, len, NULL, AES_ENCRYPTION) < 0) { in aes_encrypt_init()
320 os_free(aes); in aes_encrypt_init()
324 return aes; in aes_encrypt_init()
343 Aes *aes; in aes_decrypt_init() local
348 aes = os_malloc(sizeof(Aes)); in aes_decrypt_init()
349 if (!aes) in aes_decrypt_init()
352 if (wc_AesSetKey(aes, key, len, NULL, AES_DECRYPTION) < 0) { in aes_decrypt_init()
[all …]
/third_party/openssl/crypto/aes/
Dbuild.info6 GENERATE[aes-ia64.s]=asm/aes-ia64.S
8 GENERATE[aes-586.s]=asm/aes-586.pl \
10 DEPEND[aes-586.s]=../perlasm/x86asm.pl
18 GENERATE[aes-x86_64.s]=asm/aes-x86_64.pl $(PERLASM_SCHEME)
26 GENERATE[aes-sparcv9.S]=asm/aes-sparcv9.pl $(PERLASM_SCHEME)
27 INCLUDE[aes-sparcv9.o]=..
34 GENERATE[aes-ppc.s]=asm/aes-ppc.pl $(PERLASM_SCHEME)
38 GENERATE[aes-parisc.s]=asm/aes-parisc.pl $(PERLASM_SCHEME)
40 GENERATE[aes-mips.S]=asm/aes-mips.pl $(PERLASM_SCHEME)
41 INCLUDE[aes-mips.o]=..
[all …]
/third_party/openssl/test/ssl-tests/
D13-fragmentation.conf15 test-10 = 10-large-app-data-aes-sha1-multibuffer
16 test-11 = 11-large-app-data-aes-sha2-multibuffer
17 test-12 = 12-large-app-data-aes-sha1-multibuffer-odd-fragment
18 test-13 = 13-large-app-data-aes-sha2-multibuffer-odd-fragment
19 test-14 = 14-small-app-data-aes-sha1-multibuffer
20 test-15 = 15-small-app-data-aes-sha2-multibuffer
262 [10-large-app-data-aes-sha1-multibuffer]
263 ssl_conf = 10-large-app-data-aes-sha1-multibuffer-ssl
265 [10-large-app-data-aes-sha1-multibuffer-ssl]
266 server = 10-large-app-data-aes-sha1-multibuffer-server
[all …]
D13-fragmentation.conf.in113 name => "large-app-data-aes-sha1-multibuffer",
125 name => "large-app-data-aes-sha2-multibuffer",
137 name => "large-app-data-aes-sha1-multibuffer-odd-fragment",
149 name => "large-app-data-aes-sha2-multibuffer-odd-fragment",
164 name => "small-app-data-aes-sha1-multibuffer",
176 name => "small-app-data-aes-sha2-multibuffer",
/third_party/openssl/
Dcreate_asm_file.sh24 rm -rf crypto/aes/asm/arm32
32 mkdir crypto/aes/asm/arm32
40 perl crypto/aes/asm/aes-armv4.pl void crypto/aes/asm/arm32/aes-armv4.S
41 perl crypto/aes/asm/aesv8-armx.pl void crypto/aes/asm/arm32/aesv8-armx.S
42 perl crypto/aes/asm/bsaes-armv7.pl void crypto/aes/asm/arm32/bsaes-armv7.S
56 rm -rf crypto/aes/asm/arm64
64 mkdir crypto/aes/asm/arm64
72 perl crypto/aes/asm/aesv8-armx.pl linux64 crypto/aes/asm/arm64/aesv8-armx.S
73 perl crypto/aes/asm/vpaes-armv8.pl linux64 crypto/aes/asm/arm64/vpaes-armv8.S
88 rm -rf crypto/aes/asm/x86_64
[all …]
/third_party/ffmpeg/libavformat/
Dsrtp.c35 av_freep(&s->aes); in ff_srtp_free()
41 static void encrypt_counter(struct AVAES *aes, uint8_t *iv, uint8_t *outbuf, in encrypt_counter() argument
48 av_aes_crypt(aes, keystream, iv, 1, NULL, 0); in encrypt_counter()
54 static void derive_key(struct AVAES *aes, const uint8_t *salt, int label, in derive_key() argument
62 encrypt_counter(aes, input, out, outlen); in derive_key()
92 s->aes = av_aes_alloc(); in ff_srtp_set_crypto()
94 if (!s->aes || !s->hmac) in ff_srtp_set_crypto()
100 av_aes_init(s->aes, s->master_key, 128, 0); in ff_srtp_set_crypto()
102 derive_key(s->aes, s->master_salt, 0x00, s->rtp_key, sizeof(s->rtp_key)); in ff_srtp_set_crypto()
103 derive_key(s->aes, s->master_salt, 0x02, s->rtp_salt, sizeof(s->rtp_salt)); in ff_srtp_set_crypto()
[all …]
/third_party/openssl/crypto/evp/
De_aes.c1153 } aes; member
1971 ctx->aes.ccm.nonce.b[0] &= ~S390X_CCM_AAD_FLAG; in s390x_aes_ccm_setiv()
1972 ctx->aes.ccm.nonce.g[1] = mlen; in s390x_aes_ccm_setiv()
1973 memcpy(ctx->aes.ccm.nonce.b + 1, nonce, 15 - ctx->aes.ccm.l); in s390x_aes_ccm_setiv()
1988 ctx->aes.ccm.nonce.b[0] |= S390X_CCM_AAD_FLAG; in s390x_aes_ccm_aad()
1991 ptr = ctx->aes.ccm.buf.b; in s390x_aes_ccm_aad()
2008 ctx->aes.ccm.buf.b[i] = *aad; in s390x_aes_ccm_aad()
2014 ctx->aes.ccm.buf.b[i] = 0; in s390x_aes_ccm_aad()
2018 ctx->aes.ccm.kmac_param.icv.g[0] = 0; in s390x_aes_ccm_aad()
2019 ctx->aes.ccm.kmac_param.icv.g[1] = 0; in s390x_aes_ccm_aad()
[all …]
/third_party/ffmpeg/libavutil/
Daes_ctr.c30 struct AVAES* aes; member
71 a->aes = av_aes_alloc(); in av_aes_ctr_init()
72 if (!a->aes) { in av_aes_ctr_init()
76 av_aes_init(a->aes, key, 128, 0); in av_aes_ctr_init()
87 av_freep(&a->aes); in av_aes_ctr_free()
119 av_aes_crypt(a->aes, a->encrypted_counter, a->counter, 1, NULL, 0); in av_aes_ctr_crypt()
/third_party/mbedtls/tests/
DCMakeLists.txt157 add_test_suite(aes aes.cbc)
158 add_test_suite(aes aes.cfb)
159 add_test_suite(aes aes.ecb)
160 add_test_suite(aes aes.ofb)
161 add_test_suite(aes aes.rest)
162 add_test_suite(aes aes.xts)
171 add_test_suite(cipher cipher.aes)
/third_party/openssl/crypto/objects/
Dobjects.txt897 !Alias aes nistAlgorithms 1
899 aes 1 : AES-128-ECB : aes-128-ecb
900 aes 2 : AES-128-CBC : aes-128-cbc
901 !Cname aes-128-ofb128
902 aes 3 : AES-128-OFB : aes-128-ofb
903 !Cname aes-128-cfb128
904 aes 4 : AES-128-CFB : aes-128-cfb
905 aes 5 : id-aes128-wrap
906 aes 6 : id-aes128-GCM : aes-128-gcm
907 aes 7 : id-aes128-CCM : aes-128-ccm
[all …]
/third_party/openssl/crypto/aes/asm/
Daesni-x86.pl138 eval"&aes${p} ($inout,$rndkey1)";
143 eval"&aes${p}last ($inout,$rndkey1)";
160 eval"&aes${p} ($inout,$rndkey1)";
162 eval"&aes${p} ($inout,$rndkey0)";
165 eval"&aes${p} ($inout,$rndkey1)";
167 eval"&aes${p} ($inout,$rndkey0)";
170 eval"&aes${p} ($inout,$rndkey1)";
172 eval"&aes${p} ($inout,$rndkey0)";
174 eval"&aes${p} ($inout,$rndkey1)";
176 eval"&aes${p} ($inout,$rndkey0)";
[all …]
/third_party/node/test/parallel/
Dtest-https-resume-after-renew.js20 const aes = Buffer.alloc(16, 'S'); constant
28 return [ 1, hmac, aes, newName, newIV ];
31 return [ 2, hmac, aes ];
/third_party/mbedtls/programs/pkey/
Ddh_client.c88 mbedtls_aes_context aes; in main() local
92 mbedtls_aes_init( &aes ); in main()
273 ret = mbedtls_aes_setkey_dec( &aes, buf, 256 ); in main()
285 ret = mbedtls_aes_crypt_ecb( &aes, MBEDTLS_AES_DECRYPT, buf, buf ); in main()
297 mbedtls_aes_free( &aes ); in main()
/third_party/ffmpeg/tools/
Dcrypto_bench.c116 static struct AVAES *aes; in run_lavu_aes128() local
117 if (!aes && !(aes = av_aes_alloc())) in run_lavu_aes128()
119 av_aes_init(aes, hardcoded_key, 128, 0); in run_lavu_aes128()
120 av_aes_crypt(aes, output, input, size >> 4, NULL, 0); in run_lavu_aes128()
226 AES_KEY aes; in DEFINE_CRYPTO_WRAPPER() local
229 AES_set_encrypt_key(hardcoded_key, 128, &aes); in DEFINE_CRYPTO_WRAPPER()
232 AES_encrypt(input + i, output + i, &aes); in DEFINE_CRYPTO_WRAPPER()
392 DEFINE_MBEDCRYPTO_CYPHER_WRAPPER(aes128, aes, AES)
477 symmetric_key aes; in DEFINE_TOMCRYPT_WRAPPER() local
480 aes_setup(hardcoded_key, 16, 0, &aes); in DEFINE_TOMCRYPT_WRAPPER()
[all …]

12345