Home
last modified time | relevance | path

Searched refs:decrypt (Results 1 – 25 of 54) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/
DHpkeJniTest.java44 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/
DHpkeJniTest.java44 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/
DIkeCombinedModeCipherTest.java136 mAesGcm16Cipher.decrypt( in testAesGcmDecrypt()
157 mChaChaPolyCipher.decrypt( in testChaChaPolyDecrypt()
185 mAesGcm16Cipher.decrypt( in testDecrypWithWrongKey()
DIkeNormalModeCipherTest.java134 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/
DFastPairGattServerTest.java474 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/
DHpkeJni.java53 public static synchronized native byte[] decrypt( in decrypt() method in HpkeJni
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/jni/
DHpkeJni.java53 public static synchronized native byte[] decrypt( in decrypt() method in HpkeJni
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DCryptUtilsTest.java40 Data decryptedData = (Data) CryptUtils.decrypt(encryptedData); in testEncryptDecrypt()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpGatewayTest.java67 ObliviousHttpGateway.decrypt( in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
93 ObliviousHttpGateway.decrypt( in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java141 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/
DIkeEncryptedPayloadBody.java282 byte[] paddedPlaintext = decryptCipher.decrypt(encryptedData, decryptionKey, iv); in normalModeDecrypt()
337 decryptCipher.decrypt( in combinedModeDecrypt()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairGattServer.java640 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/
DCryptorMicImpTest.java49 v1Cryptor.decrypt(getEncryptedData(), CryptorMicImp.generateAdvNonce(SALT), in test_decryption()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/
DEventUrlHelper.java43 return (EventUrlPayload) CryptUtils.decrypt(base64Event); in decryptEvent()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DCryptUtils.java80 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/
DIkeNormalModeCipher.java127 public byte[] decrypt(byte[] encryptedData, byte[] keyBytes, byte[] ivBytes) in decrypt() method in IkeNormalModeCipher
DIkeCombinedModeCipher.java176 public byte[] decrypt( in decrypt() method in IkeCombinedModeCipher
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DHpkeEncrypterTest.java71 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/
DCryptor.java71 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/
DAggregateCryptoConverterTest.java447 HpkeJni.decrypt( in testEncryptWithHpke_successfully()
475 HpkeJni.decrypt( in assertEncryptedPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSkfPayloadTest.java106 doReturn(expectedDecryptedPaddedData).when(mSpyAesCbcCipher).decrypt(any(), any(), any()); in setUp()
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java190 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java128 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/
DMainActivity.java192 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/
DMainActivity.java193 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()

123