Searched refs:aead_ctx (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Virtualization/libs/bssl/tests/ |
D | aead_test.rs | 41 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_encrypts_and_decrypts_successfully() localVariable 44 let plaintext = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut out)?; in aes_256_gcm_encrypts_and_decrypts_successfully() 53 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() localVariable 56 let mut out = vec![0u8; MESSAGE.len() + aead_ctx.aead().max_overhead()]; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() 58 let err = aead_ctx.seal(MESSAGE, nonce, ad, &mut out).unwrap_err(); in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() 91 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_ad() localVariable 94 let err = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE1, ad2, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_with_different_ad() 108 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_nonce() localVariable 111 let err = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE2, ad, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_with_different_nonce() 126 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext() localVariable [all …]
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | keyblob.rs | 76 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in new() localVariable 77 let mut out = vec![0u8; private_key.len() + aead_ctx.aead().max_overhead()]; in new() 78 let ciphertext = aead_ctx.seal(private_key, PRIVATE_KEY_NONCE, PRIVATE_KEY_AD, &mut out)?; in new() 87 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in decrypt_private_key() localVariable 88 let plaintext = aead_ctx.open( in decrypt_private_key()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | instance.rs | 111 let aead_ctx = aead_ctx_from_secret(secret)?; in get_recorded_entry() localVariable 125 aead_ctx.open(payload, /* nonce */ &[], /* ad */ &[], &mut entry)?; in get_recorded_entry() 142 let aead_ctx = aead_ctx_from_secret(secret)?; in record_instance_entry() localVariable 143 assert!(plaintext.len() + aead_ctx.aead().max_overhead() < blk.len()); in record_instance_entry() 144 let encrypted = aead_ctx.seal(plaintext, /* nonce */ &[], /* ad */ &[], &mut blk)?; in record_instance_entry()
|
/packages/modules/AdServices/adservices/service-core/jni/cpp/ |
D | ohttp_jni.cpp | 538 EVP_AEAD_CTX *aead_ctx = in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() local 541 if (aead_ctx == nullptr) { in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() 555 if (!EVP_AEAD_CTX_open(aead_ctx, in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen()
|