/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | OhttpJniWrapperTest.java | 85 AeadNativeRef aead = AeadNativeRef.getHpkeAeadAes256GcmReference(); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret() local 93 evpCtxSender, kem, kdf, aead, keyBytes, recipientKeyInfoBytes, seedBytes); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret() 107 AeadNativeRef aead = AeadNativeRef.getHpkeAeadAes256GcmReference(); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange() local 115 evpCtxSender, kem, kdf, aead, keyBytes, recipientKeyInfoBytes, seedBytes); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange() 127 AeadNativeRef aead = AeadNativeRef.getHpkeAeadAes256GcmReference(); in hpkeEncrypt_returnsCorrectResponse() local 136 evpCtxSender, kem, kdf, aead, keyBytes, recipientKeyInfoBytes, seedBytes); in hpkeEncrypt_returnsCorrectResponse() 142 aead, in hpkeEncrypt_returnsCorrectResponse() 165 AeadNativeRef aead = AeadNativeRef.getHpkeAeadAes256GcmReference(); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() local 174 evpCtxSender, kem, kdf, aead, keyBytes, recipientKeyInfoBytes, seedBytes); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() 180 aead, in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() [all …]
|
D | ObliviousHttpClientTest.java | 96 actualClient.getHpkeAlgorithmSpec().aead().identifier(), in create_supportedAlgorithms_aeadIdSetCorrectly()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpClient.java | 92 AeadNativeRef aeadNativeRef = mHpkeAlgorithmSpec.aead().aeadNativeRefSupplier().get(); in createObliviousHttpRequest() 149 AeadAlgorithmSpec aead = mHpkeAlgorithmSpec.aead(); in decryptObliviousHttpResponse() local 151 ohttpJniWrapper.hkdfExpand(messageDigest, prk, keyContext, aead.keyLength()); in decryptObliviousHttpResponse() 156 ohttpJniWrapper.hkdfExpand(messageDigest, prk, nonceContext, aead.nonceLength()); in decryptObliviousHttpResponse() 158 AeadNativeRef aeadNativeRef = aead.aeadNativeRefSupplier().get(); in decryptObliviousHttpResponse() 179 AeadAlgorithmSpec aead = mHpkeAlgorithmSpec.aead(); in extractResponseNonce() local 180 int lengthNonce = Math.max(aead.nonceLength(), aead.keyLength()); in extractResponseNonce() 189 AeadAlgorithmSpec aead = mHpkeAlgorithmSpec.aead(); in extractCipherText() local 190 int lengthNonce = Math.max(aead.nonceLength(), aead.keyLength()); in extractCipherText() 213 AeadNativeRef aeadNativeRef = mHpkeAlgorithmSpec.aead().aeadNativeRefSupplier().get(); in export() [all …]
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/algorithms/ |
D | HpkeAlgorithmSpec.java | 36 public abstract AeadAlgorithmSpec aead(); in aead() method in HpkeAlgorithmSpec 39 KemAlgorithmSpec kem, KdfAlgorithmSpec kdf, AeadAlgorithmSpec aead) { in create() argument 40 return new AutoValue_HpkeAlgorithmSpec(kem, kdf, aead); in create() 51 AeadAlgorithmSpec aead = AeadAlgorithmSpec.get(obliviousHttpKeyConfig.aeadId()); in fromKeyConfig() local 52 return create(kem, kdf, aead); in fromKeyConfig()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | aead.rs | 81 aead: Aead, field 96 pub fn new(aead: Aead, key: &[u8], tag_len: Option<usize>) -> Result<Self> { in new() 100 let ctx = unsafe { EVP_AEAD_CTX_new(aead.0, key.as_ptr(), key.len(), tag_len) }; in new() 103 Ok(Self { ctx, aead }) in new() 174 pub fn aead(&self) -> Aead { in aead() method 175 self.aead in aead()
|
D | lib.rs | 22 mod aead; module 38 pub use aead::{Aead, AeadContext, AES_GCM_NONCE_LENGTH};
|
/packages/modules/AdServices/adservices/service-core/jni/cpp/ |
D | ohttp_jni.cpp | 116 const EVP_HPKE_AEAD *aead = in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() local 125 if (kem == nullptr || kdf == nullptr || aead == nullptr) { in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() 158 /* aead= */ aead, in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() 258 const EVP_HPKE_AEAD *aead = in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeSetupRecipient() local 261 if (kem == nullptr || kdf == nullptr || aead == nullptr) { in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeSetupRecipient() 314 aead, in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeSetupRecipient() 528 const EVP_AEAD *aead = EVP_HPKE_AEAD_aead(hpkeAead); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() local 530 if (aead == nullptr) { in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() 539 EVP_AEAD_CTX_new(aead, reinterpret_cast<const uint8_t *>(key), keyLen, 0); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() 596 const EVP_AEAD *aead = EVP_HPKE_AEAD_aead(hpkeAead); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadSeal() local [all …]
|
/packages/modules/Virtualization/libs/bssl/tests/ |
D | aead_test.rs | 56 let mut out = vec![0u8; MESSAGE.len() + aead_ctx.aead().max_overhead()]; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() 140 let mut out = vec![0u8; message.len() + aead_ctx.aead().max_overhead()]; in aes_256_gcm_encrypt() 142 assert_eq!(aead_ctx.aead().nonce_length(), AES_256_GCM_NONCE1.len()); in aes_256_gcm_encrypt()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/algorithms/ |
D | HpkeAlgorithmSpecTest.java | 43 Assert.assertEquals(hpkeAlgorithmSpec.aead().identifier(), 0X0002); in fromKeyConfig_createsHpkeAlgorithmSpec()
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | keyblob.rs | 77 let mut out = vec![0u8; private_key.len() + aead_ctx.aead().max_overhead()]; in new()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecService.java | 1581 IpSecAlgorithm aead = config.getAuthenticatedEncryption(); in validateAlgorithms() local 1585 aead != null || crypt != null || auth != null, in validateAlgorithms() 1593 aead == null || aead.isAead(), in validateAlgorithms() 1596 aead == null || (auth == null && crypt == null), in validateAlgorithms()
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/ |
D | tink-android-1.5.0.jar | com/google/crypto/tink/subtle/prf/StreamingPrf.class
StreamingPrf.java
package ... |
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 597 IpSecAlgorithm aead, 617 if (aead != null) { 618 transformBuilder.setAuthenticatedEncryption(aead); 651 getIvLen(crypt != null ? crypt : aead), 652 getBlkSize(crypt != null ? crypt : aead), 653 getTruncLenBits(auth != null ? auth : aead));
|
/packages/modules/Virtualization/pvmfw/src/ |
D | instance.rs | 143 assert!(plaintext.len() + aead_ctx.aead().max_overhead() < blk.len()); in record_instance_entry()
|