/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ |
D | HpkeJniTest.java | 44 final byte[] result = HpkeJni.decrypt(sPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_Success() 57 final byte[] plaintext = HpkeJni.decrypt(sPrivateKey, ciphertext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 113 final byte[] result = HpkeJni.decrypt(/* privateKey= */ null, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyNull_fail() 120 final byte[] result = HpkeJni.decrypt(shortPrivateKey, sCiphertext, sAssociatedData); in testHpkDecrypt_privateKeyShorterThan32_fail() 127 final byte[] result = HpkeJni.decrypt(longPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyLargerThan32_fail() 134 final byte[] result = HpkeJni.decrypt(privateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyInvalid_fail() 148 final byte[] result = HpkeJni.decrypt(sPrivateKey, emptyCiphertext, sAssociatedData); in testHpkeDecrypt_ciphertextInvalid_fail() 155 HpkeJni.decrypt(sPrivateKey, sCiphertext, /* associatedData = */ null); in testHpkeDecrypt_associatedDataNull_fail()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJniTest.java | 44 final byte[] result = HpkeJni.decrypt(sPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_Success() 57 final byte[] plaintext = HpkeJni.decrypt(sPrivateKey, ciphertext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 113 final byte[] result = HpkeJni.decrypt(/* privateKey= */ null, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyNull_fail() 120 final byte[] result = HpkeJni.decrypt(shortPrivateKey, sCiphertext, sAssociatedData); in testHpkDecrypt_privateKeyShorterThan32_fail() 127 final byte[] result = HpkeJni.decrypt(longPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyLargerThan32_fail() 134 final byte[] result = HpkeJni.decrypt(privateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_privateKeyInvalid_fail() 148 final byte[] result = HpkeJni.decrypt(sPrivateKey, emptyCiphertext, sAssociatedData); in testHpkeDecrypt_ciphertextInvalid_fail() 155 HpkeJni.decrypt(sPrivateKey, sCiphertext, /* associatedData = */ null); in testHpkeDecrypt_associatedDataNull_fail()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipherTest.java | 136 mAesGcm16Cipher.decrypt( in testAesGcmDecrypt() 157 mChaChaPolyCipher.decrypt( in testChaChaPolyDecrypt() 185 mAesGcm16Cipher.decrypt( in testDecrypWithWrongKey()
|
D | IkeNormalModeCipherTest.java | 134 byte[] calculatedData = mAesCbcCipher.decrypt(mEncryptedPaddedData, mAesCbcKey, mIv); in testDecryptWithAesCbc() 148 byte[] calculatedData = mAesCtrCipher.decrypt(mAesCtrEncryptedData, mAesCtrKey, mAesCtrIv); in testDecryptWithAesCtr() 170 mAesCbcCipher.decrypt(dataToDecrypt, mAesCbcKey, mIv); in testDecryptWithNormalCipherWithBadPad()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | FastPairGattServerTest.java | 474 private byte[] decrypt(byte[] encrypted, byte[] keyBytes) { in decrypt() method in FastPairGattServerTest 524 byte[] response = decrypt(encryptedResponse, TEST_GENERATED_KEY); in testProcessKeyBasedPairingRequestWithAntiSpoofKey_responseValid() 555 byte[] response = decrypt(encryptedResponse, TEST_VALID_ACCOUNT_KEY); in testProcessKeyBasedPairingRequestUsingAccountKey_responseValid() 627 byte[] passkeyResponse = decrypt(encryptedResponse, TEST_GENERATED_KEY); in testProcessPasskeyRequest_pairingConfirmed() 715 byte[] passkeyResponse = decrypt(encryptedResponse, TEST_GENERATED_KEY); in testReceivePairingCodeAfterSeekerPasskey_sendsPairingResponse() 741 byte[] passkeyResponse = decrypt(encryptedResponse, TEST_GENERATED_KEY); in testReceivePairingCodeWhileDisconnected_nothingSent()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ |
D | HpkeJni.java | 53 public static synchronized native byte[] decrypt( in decrypt() method in HpkeJni
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJni.java | 53 public static synchronized native byte[] decrypt( in decrypt() method in HpkeJni
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/ |
D | CryptUtilsTest.java | 40 Data decryptedData = (Data) CryptUtils.decrypt(encryptedData); in testEncryptDecrypt()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpGatewayTest.java | 67 ObliviousHttpGateway.decrypt( in decrypt_canDecryptPayloadsEncryptedByOhttpClient() 93 ObliviousHttpGateway.decrypt( in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 141 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption() 161 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWepWifiConfigurationSerializeDeserializeWithEncryption() 495 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() 918 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testConfigStoreWithEncryptedPreSharedKey() 942 verify(mWifiConfigStoreEncryptionUtil).decrypt(encryptedData); in testConfigStoreWithEncryptedPreSharedKey()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeEncryptedPayloadBody.java | 282 byte[] paddedPlaintext = decryptCipher.decrypt(encryptedData, decryptionKey, iv); in normalModeDecrypt() 337 decryptCipher.decrypt( in combinedModeDecrypt()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairGattServer.java | 640 private byte[] decrypt(byte[] encryptedData, SecretKeySpec secretKeySpec) { in decrypt() method in FastPairGattServer 807 byte[] decryptedRequest = decrypt(encryptedRequest, secretKeySpec); in validateRequestAgainstKey() 860 byte[] decryptedRequest = decrypt(pairingKey, mSharedSecretKey); in processPairingKey() 968 byte[] decodedAccountKey = decrypt(accountKey, mSharedSecretKey); in processAccountKey()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/util/encryption/ |
D | CryptorMicImpTest.java | 49 v1Cryptor.decrypt(getEncryptedData(), CryptorMicImp.generateAdvNonce(SALT), in test_decryption()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/ |
D | EventUrlHelper.java | 43 return (EventUrlPayload) CryptUtils.decrypt(base64Event); in decryptEvent()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | CryptUtils.java | 80 public static Object decrypt(@NonNull String base64data) throws Exception { in decrypt() method in CryptUtils
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeNormalModeCipher.java | 127 public byte[] decrypt(byte[] encryptedData, byte[] keyBytes, byte[] ivBytes) in decrypt() method in IkeNormalModeCipher
|
D | IkeCombinedModeCipher.java | 176 public byte[] decrypt( in decrypt() method in IkeCombinedModeCipher
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | HpkeEncrypterTest.java | 71 byte[] decryptedText = HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in testEncryption_success()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/encryption/ |
D | Cryptor.java | 71 public byte[] decrypt(byte[] encryptedData, byte[] iv, byte[] secretKeyBytes) { in decrypt() method in Cryptor
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoConverterTest.java | 447 HpkeJni.decrypt( in testEncryptWithHpke_successfully() 475 HpkeJni.decrypt( in assertEncryptedPayload()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSkfPayloadTest.java | 106 doReturn(expectedDecryptedPaddedData).when(mSpyAesCbcCipher).decrypt(any(), any(), any()); in setUp()
|
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/ |
D | MainActivity.java | 190 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 128 public @Nullable byte[] decrypt(@NonNull EncryptedData encryptedData) { in decrypt() method in WifiConfigStoreEncryptionUtil
|
/packages/modules/AdServices/adservices/samples/topics/sampleappwithnoperm/java/com/example/adservices/samples/topics/sampleappwithnoperm/ |
D | MainActivity.java | 192 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
|
/packages/modules/AdServices/adservices/samples/topics/sampleapp3/java/com/example/adservices/samples/topics/sampleapp3/ |
D | MainActivity.java | 193 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
|