/packages/modules/Virtualization/libs/bssl/tests/ |
D | aead_test.rs | 37 let ciphertext = aes_256_gcm_encrypt(MESSAGE)?; in aes_256_gcm_encrypts_and_decrypts_successfully() localVariable 42 let mut out = vec![0u8; ciphertext.len()]; in aes_256_gcm_encrypts_and_decrypts_successfully() 44 let plaintext = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut out)?; in aes_256_gcm_encrypts_and_decrypts_successfully() 70 let ciphertext = aes_256_gcm_encrypt(MESSAGE)?; in aes_256_gcm_fails_to_decrypt_with_wrong_key() localVariable 75 let mut plaintext = vec![0u8; ciphertext.len()]; in aes_256_gcm_fails_to_decrypt_with_wrong_key() 77 let err = aead_ctx2.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_with_wrong_key() 87 let ciphertext = aes_256_gcm_encrypt(MESSAGE)?; in aes_256_gcm_fails_to_decrypt_with_different_ad() localVariable 92 let mut plaintext = vec![0u8; ciphertext.len()]; in aes_256_gcm_fails_to_decrypt_with_different_ad() 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() 104 let ciphertext = aes_256_gcm_encrypt(MESSAGE)?; in aes_256_gcm_fails_to_decrypt_with_different_nonce() localVariable [all …]
|
/packages/modules/OnDevicePersonalization/federatedcompute/jni/cpp/ |
D | hpke_jni.cc | 71 … bssl::Span<uint8_t> ciphertext = bssl::MakeSpan(payload).subspan(encapsulated_shared_secret_len); in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() local 78 /* out= */ ciphertext.data(), in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() 80 /* max_out_len= */ ciphertext.size(), in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() 106 jbyteArray privateKey, jbyteArray ciphertext, jbyteArray associatedData) { in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_decrypt() argument 108 if (privateKey == NULL || ciphertext == NULL || associatedData == NULL) { in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_decrypt() 128 std::vector<uint8_t> payload(env->GetArrayLength(ciphertext)); in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_decrypt() 129 env->GetByteArrayRegion(ciphertext, in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_decrypt() 131 env->GetArrayLength(ciphertext), in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_decrypt()
|
/packages/modules/AdServices/adservices/service-core/jni/cpp/ |
D | hpke_jni.cpp | 71 bssl::Span<uint8_t> ciphertext = bssl::MakeSpan(payload).subspan(encapsulated_shared_secret_len); in Java_com_android_adservices_HpkeJni_encrypt() local 78 /* out= */ ciphertext.data(), in Java_com_android_adservices_HpkeJni_encrypt() 80 /* max_out_len= */ ciphertext.size(), in Java_com_android_adservices_HpkeJni_encrypt() 106 jbyteArray privateKey, jbyteArray ciphertext, jbyteArray associatedData) { in Java_com_android_adservices_HpkeJni_decrypt() argument 108 if (privateKey == NULL || ciphertext == NULL || associatedData == NULL) { in Java_com_android_adservices_HpkeJni_decrypt() 128 std::vector<uint8_t> payload(env->GetArrayLength(ciphertext)); in Java_com_android_adservices_HpkeJni_decrypt() 129 env->GetByteArrayRegion(ciphertext, in Java_com_android_adservices_HpkeJni_decrypt() 131 env->GetArrayLength(ciphertext), in Java_com_android_adservices_HpkeJni_decrypt()
|
D | ohttp_jni.cpp | 549 jbyte *ciphertext = env->GetByteArrayElements(cipherTextArray, 0); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() local 559 reinterpret_cast<const uint8_t *>(ciphertext), in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() 564 env->ReleaseByteArrayElements(cipherTextArray, ciphertext, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen() 570 env->ReleaseByteArrayElements(cipherTextArray, ciphertext, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_aeadOpen()
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/testing/crypto/ |
D | HpkeEncryptFactoryTest.java | 35 byte[] ciphertext = emptyEncrypt.encrypt(PUBLIC_KEY, PLAIN_TEXT, CONTEXT_INFO); in emptyHpkeEncrpyt_returnsEmpty() 36 assertThat(ciphertext).isEqualTo(new byte[] {}); in emptyHpkeEncrpyt_returnsEmpty() 42 byte[] ciphertext = noOpEncrypt.encrypt(PUBLIC_KEY, PLAIN_TEXT, CONTEXT_INFO); in noOpHpkeEncrypt_retainsPlaintext() 43 assertThat(ciphertext).isEqualTo(PLAIN_TEXT); in noOpHpkeEncrypt_retainsPlaintext()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/ |
D | ExtendedAdvertisement.java | 199 byte[] ciphertext = new byte[bytes.length - index - cryptor.getSignatureLength()]; in fromBytes() 200 System.arraycopy(bytes, index, ciphertext, 0, ciphertext.length); in fromBytes() 201 byte[] plaintext = cryptor.decrypt(ciphertext, nonce, keySeed); in fromBytes() 229 nonce, identityHeaderArray, ciphertext); in fromBytes() 334 byte[] ciphertext = getCiphertext(nonce, dataElementList); in toBytesInternal() 335 if (ciphertext == null) { in toBytesInternal() 338 sectionLength += ciphertext.length; in toBytesInternal() 362 micInputBuffer.put(ciphertext); in toBytesInternal() 374 buffer.put(ciphertext); in toBytesInternal()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ |
D | HpkeJniTest.java | 52 final byte[] ciphertext = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 53 Assert.assertNotNull(ciphertext); in testHpkeEncryptDecrypt_Success() 54 Assert.assertTrue(ciphertext.length > 0); in testHpkeEncryptDecrypt_Success() 55 Assert.assertFalse(new String(sPlaintext).equals(new String(ciphertext))); in testHpkeEncryptDecrypt_Success() 57 final byte[] plaintext = HpkeJni.decrypt(sPrivateKey, ciphertext, sAssociatedData); in testHpkeEncryptDecrypt_Success()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJniTest.java | 52 final byte[] ciphertext = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 53 Assert.assertNotNull(ciphertext); in testHpkeEncryptDecrypt_Success() 54 Assert.assertTrue(ciphertext.length > 0); in testHpkeEncryptDecrypt_Success() 55 Assert.assertFalse(new String(sPlaintext).equals(new String(ciphertext))); in testHpkeEncryptDecrypt_Success() 57 final byte[] plaintext = HpkeJni.decrypt(sPrivateKey, ciphertext, sAssociatedData); in testHpkeEncryptDecrypt_Success()
|
/packages/modules/AdServices/adservices/libraries/cobalt/proto/ |
D | encrypted_message.proto | 35 // the EncryptedMessage proto to carry the ciphertext in both cases. 41 // The message is not encrypted. |ciphertext| contains plaintext bytes of a 71 // This field should only be set when the |ciphertext| contains a 79 // The |ciphertext| field contains the bytes of the encryption of the standard 89 bytes ciphertext = 3; field
|
D | observation_batch.proto | 82 // Each EncryptedMessage contains the ciphertext of an Observation that has
|
D | observation.proto | 52 // the |ciphertext| field of an EncryptedMessage. Many encrypted Observations
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | keyblob.rs | 78 let ciphertext = aead_ctx.seal(private_key, PRIVATE_KEY_NONCE, PRIVATE_KEY_AD, &mut out)?; in new() localVariable 80 Ok(Self { kek_salt, encrypted_private_key: ciphertext.to_vec() }) in new()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ |
D | HpkeJni.java | 54 @NonNull byte[] privateKey, @NonNull byte[] ciphertext, @NonNull byte[] associatedData); in decrypt() argument
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJni.java | 54 @NonNull byte[] privateKey, @NonNull byte[] ciphertext, @NonNull byte[] associatedData); in decrypt() argument
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/presence/ |
D | ExtendedAdvertisementTest.java | 367 byte[] ciphertext = in getExtendedAdvertisementByteArray() 371 buffer.put(ciphertext); in getExtendedAdvertisementByteArray() 378 nonce, identityHeader, ciphertext); in getExtendedAdvertisementByteArray()
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | instance.rs | 194 let ciphertext = encrypt_aead(cipher, &key, Some(&nonce), &header, &data, &mut tag)?; in write_microdroid_data() localVariable 197 self.file.write_all(&ciphertext)?; in write_microdroid_data()
|
/packages/modules/AdServices/adservices/service-core/proto/ |
D | seller_frontend_service.proto | 106 // The value corresponds to BuyerInput ciphertext that will be ingested by
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/ |
D | tink-android-1.5.0.jar | com/google/crypto/tink/subtle/prf/StreamingPrf.class
StreamingPrf.java
package ... |