Home
last modified time | relevance | path

Searched refs:aes_key (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/crypto/aes/
Daes_test.cc25 AES_KEY aes_key; in TestAES() local
26 if (AES_set_encrypt_key(key, key_len * 8, &aes_key) != 0) { in TestAES()
33 AES_encrypt(plaintext, block, &aes_key); in TestAES()
41 AES_encrypt(block, block, &aes_key); in TestAES()
47 if (AES_set_decrypt_key(key, key_len * 8, &aes_key) != 0) { in TestAES()
53 AES_decrypt(ciphertext, block, &aes_key); in TestAES()
61 AES_decrypt(block, block, &aes_key); in TestAES()
/external/boringssl/src/crypto/modes/
Dgcm_test.c307 AES_KEY aes_key; in run_test_case() local
342 if (AES_set_encrypt_key(key, key_len*8, &aes_key)) { in run_test_case()
347 CRYPTO_gcm128_init(&ctx, &aes_key, (block128_f) AES_encrypt); in run_test_case()
348 CRYPTO_gcm128_setiv(&ctx, &aes_key, nonce, nonce_len); in run_test_case()
354 CRYPTO_gcm128_encrypt(&ctx, &aes_key, plaintext, out, plaintext_len); in run_test_case()
364 CRYPTO_gcm128_setiv(&ctx, &aes_key, nonce, nonce_len); in run_test_case()
370 CRYPTO_gcm128_decrypt(&ctx, &aes_key, ciphertext, out, plaintext_len); in run_test_case()
/external/boringssl/src/crypto/cipher/
De_aes.c411 static ctr128_f aes_ctr_set_key(AES_KEY *aes_key, GCM128_CONTEXT *gcm_ctx, in aes_ctr_set_key() argument
416 aesni_set_encrypt_key(key, key_len * 8, aes_key); in aes_ctr_set_key()
418 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)aesni_encrypt); in aes_ctr_set_key()
427 aes_v8_set_encrypt_key(key, key_len * 8, aes_key); in aes_ctr_set_key()
429 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)aes_v8_encrypt); in aes_ctr_set_key()
438 AES_set_encrypt_key(key, key_len * 8, aes_key); in aes_ctr_set_key()
440 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)AES_encrypt); in aes_ctr_set_key()
449 vpaes_set_encrypt_key(key, key_len * 8, aes_key); in aes_ctr_set_key()
454 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)vpaes_encrypt); in aes_ctr_set_key()
459 AES_set_encrypt_key(key, key_len * 8, aes_key); in aes_ctr_set_key()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/doc/
Dusage.rst259 >>> aes_key = rsa.randnum.read_random_bits(128)
264 >>> encrypted_aes_key = rsa.encrypt(aes_key, public_rsa_key)
/external/boringssl/src/crypto/aes/asm/
Daes-x86_64.pl1638 my $aes_key="80(%rsp)"; # copy of aes_key
1729 lea $aes_key,%rdi
1730 lea $aes_key,$key
1890 lea $aes_key,%rdi
Daes-586.pl2036 my $aes_key=&DWP(76,"esp"); # copy of aes_key
2117 &lea ("edi",$aes_key);