/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ |
D | HpkeJniTest.java | 37 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_Success() 52 final byte[] ciphertext = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 65 final byte[] result = HpkeJni.encrypt(/* publicKey= */ null, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyNull_fail() 72 final byte[] result = HpkeJni.encrypt(shortPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyShorterThan32_fail() 79 final byte[] result = HpkeJni.encrypt(longPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyLongerThan32_fail() 85 final byte[] result = HpkeJni.encrypt(sPublicKey, /* plainText = */ null, sAssociatedData); in testHpkeEncrypt_plainTextNull_fail() 92 final byte[] result = HpkeJni.encrypt(sPublicKey, emptyPlainText, sAssociatedData); in testHpkeEncrypt_plainTextEmpty_success() 99 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, /* associatedData = */ null); in testHpkeEncrypt_associatedDataNull_fail() 106 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, emptyAssociatedData); in testHpkeEncrypt_associatedDataEmpty_success() 141 HpkeJni.encrypt(sPrivateKey, /* ciphertext = */ null, sAssociatedData); in testHpkeDecrypt_ciphertextNull_fail()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJniTest.java | 37 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_Success() 52 final byte[] ciphertext = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncryptDecrypt_Success() 65 final byte[] result = HpkeJni.encrypt(/* publicKey= */ null, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyNull_fail() 72 final byte[] result = HpkeJni.encrypt(shortPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyShorterThan32_fail() 79 final byte[] result = HpkeJni.encrypt(longPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyLongerThan32_fail() 85 final byte[] result = HpkeJni.encrypt(sPublicKey, /* plainText = */ null, sAssociatedData); in testHpkeEncrypt_plainTextNull_fail() 92 final byte[] result = HpkeJni.encrypt(sPublicKey, emptyPlainText, sAssociatedData); in testHpkeEncrypt_plainTextEmpty_success() 99 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, /* associatedData = */ null); in testHpkeEncrypt_associatedDataNull_fail() 106 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, emptyAssociatedData); in testHpkeEncrypt_associatedDataEmpty_success() 141 HpkeJni.encrypt(sPrivateKey, /* ciphertext = */ null, sAssociatedData); in testHpkeDecrypt_ciphertextNull_fail()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothServerSocket.java | 101 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) in BluetoothServerSocket() argument 106 mSocket = new BluetoothSocket(type, auth, encrypt, null, port, null); in BluetoothServerSocket() 125 int type, boolean auth, boolean encrypt, int port, boolean mitm, boolean min16DigitPin) in BluetoothServerSocket() argument 130 mSocket = new BluetoothSocket(type, auth, encrypt, null, port, null, mitm, min16DigitPin); in BluetoothServerSocket() 146 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, ParcelUuid uuid) in BluetoothServerSocket() argument 150 mSocket = new BluetoothSocket(type, auth, encrypt, null, -1, uuid); in BluetoothServerSocket()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | HpkeEncrypterTest.java | 65 mHpkeEncrypter.encrypt(DECODED_PUBLIC_KEY, plainText, EMPTY_CONTEXT_INFO); in testEncryption_success() 91 mHpkeEncrypter.encrypt( in testEncryption_invalidKeyLength_returnsEmpty() 108 mHpkeEncrypter.encrypt( in testEncryption_nullPlainText_throwsException() 119 () -> mHpkeEncrypter.encrypt(/* publicKey */ null, plainText, EMPTY_CONTEXT_INFO)); in testEncryption_nullPublicKey_throwsException() 130 mHpkeEncrypter.encrypt( in testEncryption_nullContextInfo_throwsException()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoConverterTest.java | 81 AggregateCryptoConverter.encrypt( in testEncrypt_successfully() 90 AggregateCryptoConverter.encrypt( in testEncrypt_payloadPadding_sameSize() 93 AggregateCryptoConverter.encrypt( in testEncrypt_payloadPadding_sameSize() 101 AggregateCryptoConverter.encrypt( in testEncrypt_sharedInfoEmpty_success() 110 AggregateCryptoConverter.encrypt( in testEncrypt_sharedInfoNull_success() 119 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMalformed() 135 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingOperation() 151 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingData() 167 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingValue() 183 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingBucket()
|
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/crypto/ |
D | HpkeEncrypter.java | 107 return encrypt( in encryptEnvelope() 128 return encrypt( in encryptObservation() 151 private Optional<EncryptedMessage> encrypt( in encrypt() method in HpkeEncrypter 174 mEncrypter.encrypt(publicKey, message.toByteArray(), contextInfoBytes); in encrypt()
|
D | HpkeEncrypt.java | 32 byte[] encrypt( in encrypt() method
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/ |
D | HpkeJniEncrypter.java | 28 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] associatedData) { in encrypt() method in HpkeJniEncrypter 29 return HpkeJni.encrypt(publicKey, plainText, associatedData); in encrypt()
|
D | Encrypter.java | 30 byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] associatedData); in encrypt() method
|
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/testing/crypto/ |
D | HpkeEncryptFactory.java | 29 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] contextInfo) { in noOpHpkeEncrypt() 41 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] contextInfo) {
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/ |
D | HpkeEncryptImpl.java | 39 public byte[] encrypt( in encrypt() method in HpkeEncryptImpl 41 return HpkeJni.encrypt(publicKey, plainText, contextInfo); in encrypt()
|
/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() 42 byte[] ciphertext = noOpEncrypt.encrypt(PUBLIC_KEY, PLAIN_TEXT, CONTEXT_INFO); in noOpHpkeEncrypt_retainsPlaintext()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpGatewayTest.java | 118 ObliviousHttpGateway.encrypt( in encrypt_canBeDecryptedByOhttpClient() 150 ObliviousHttpGateway.encrypt( in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange() 179 ObliviousHttpGateway.encrypt( in encrypt_missingInfo_throwsError() 202 ObliviousHttpGateway.encrypt( in encrypt_missingInfo_throwsError_withServerAuctionMediaTypeChange()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | HpkeEncrypter.java | 49 public byte[] encrypt( in encrypt() method in HpkeEncrypter 59 return HpkeJni.encrypt(publicKey, plainText, contextInfo); in encrypt()
|
D | Encrypter.java | 29 byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] contextInfo); in encrypt() method
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipherTest.java | 127 mAesGcm16Cipher.encrypt( in testAesGcmEncrypt() 145 mChaChaPolyCipher.encrypt( in testChaChaPolyEncrypt() 171 mAesGcm16Cipher.encrypt( in testEncryptWithWrongKeyLen()
|
D | IkeNormalModeCipherTest.java | 127 byte[] calculatedData = mAesCbcCipher.encrypt(mUnencryptedPaddedData, mAesCbcKey, mIv); in testEncryptWithAesCbc() 141 mAesCtrCipher.encrypt(mAesCtrUnencryptedData, mAesCtrKey, mAesCtrIv); in testEncryptWithAesCtr() 157 mAesCbcCipher.encrypt(mEncryptedPaddedData, encryptionKey, mIv); in testEncryptWithWrongKey()
|
/packages/modules/AdServices/adservices/libraries/cobalt/proto/ |
D | encrypted_message.proto | 39 // The different schemes used in Cobalt to encrypt a message. 56 // Which scheme was used to encrypt this message? 59 // Which key was used to encrypt this message?
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 139 when(mWifiConfigStoreEncryptionUtil.encrypt(pskNetwork.preSharedKey.getBytes())) in testPskWifiConfigurationSerializeDeserializeWithEncryption() 159 when(mWifiConfigStoreEncryptionUtil.encrypt(wepNetwork.wepKeys[i].getBytes())) in testWepWifiConfigurationSerializeDeserializeWithEncryption() 179 when(mWifiConfigStoreEncryptionUtil.encrypt(wepNetwork.wepKeys[i].getBytes())) in testWepWifiConfigurationSerializeDeserializeWithEncryptionFailed() 493 when(mWifiConfigStoreEncryptionUtil.encrypt(TEST_PASSWORD.getBytes())) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() 916 when(mWifiConfigStoreEncryptionUtil.encrypt(configuration.preSharedKey.getBytes())) in testConfigStoreWithEncryptedPreSharedKey() 931 verify(mWifiConfigStoreEncryptionUtil).encrypt(configuration.preSharedKey.getBytes()); in testConfigStoreWithEncryptedPreSharedKey() 936 verify(mWifiConfigStoreEncryptionUtil, never()).encrypt( in testConfigStoreWithEncryptedPreSharedKey()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | EncryptDeviceActivityTest.java | 132 onView(withText(R.string.encrypt)).perform(click()); in testProfileOwner() 153 onView(withText(R.string.encrypt)).perform(click()); in testDeviceOwner()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ |
D | HpkeJni.java | 42 public static synchronized native byte[] encrypt( in encrypt() method in HpkeJni
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/jni/ |
D | HpkeJni.java | 42 public static synchronized native byte[] encrypt( in encrypt() method in HpkeJni
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoConverter.java | 67 public static String encrypt( in encrypt() method in AggregateCryptoConverter 200 return HpkeJni.encrypt(publicKey, plainText, contextInfo); in encryptWithHpke()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/ |
D | CryptUtilsTest.java | 39 String encryptedData = CryptUtils.encrypt(data); in testEncryptDecrypt()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessageTest.java | 507 when(mMockCipher.encrypt(any(), any(), any())) in testEncodeAndEncryptEmptyMsg() 867 when(ikeCipher.encrypt(any(), any(), any())) in testEncodeAndEncryptFragmentsWithNormalModeCipher() 877 .encrypt(any(), eq(expectedKey), eq(expectedIv)); in testEncodeAndEncryptFragmentsWithNormalModeCipher() 885 when(ikeCipher.encrypt(any(), any(), any(), any())) in testEncodeAndEncryptFragmentsWithCombinedModeCipher() 895 .encrypt(any(), any(), eq(expectedKey), eq(expectedIv)); in testEncodeAndEncryptFragmentsWithCombinedModeCipher()
|