Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 64) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/
DHpkeJniTest.java37 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/
DHpkeJniTest.java37 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/
DBluetoothServerSocket.java101 /*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/
DHpkeEncrypterTest.java65 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/
DAggregateCryptoConverterTest.java81 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/
DHpkeEncrypter.java107 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()
DHpkeEncrypt.java32 byte[] encrypt( in encrypt() method
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/
DHpkeJniEncrypter.java28 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] associatedData) { in encrypt() method in HpkeJniEncrypter
29 return HpkeJni.encrypt(publicKey, plainText, associatedData); in encrypt()
DEncrypter.java30 byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] associatedData); in encrypt() method
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/testing/crypto/
DHpkeEncryptFactory.java29 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/
DHpkeEncryptImpl.java39 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/
DHpkeEncryptFactoryTest.java35 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/
DObliviousHttpGatewayTest.java118 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/
DHpkeEncrypter.java49 public byte[] encrypt( in encrypt() method in HpkeEncrypter
59 return HpkeJni.encrypt(publicKey, plainText, contextInfo); in encrypt()
DEncrypter.java29 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/
DIkeCombinedModeCipherTest.java127 mAesGcm16Cipher.encrypt( in testAesGcmEncrypt()
145 mChaChaPolyCipher.encrypt( in testChaChaPolyEncrypt()
171 mAesGcm16Cipher.encrypt( in testEncryptWithWrongKeyLen()
DIkeNormalModeCipherTest.java127 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/
Dencrypted_message.proto39 // 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/
DXmlUtilTest.java139 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/
DEncryptDeviceActivityTest.java132 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/
DHpkeJni.java42 public static synchronized native byte[] encrypt( in encrypt() method in HpkeJni
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/jni/
DHpkeJni.java42 public static synchronized native byte[] encrypt( in encrypt() method in HpkeJni
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoConverter.java67 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/
DCryptUtilsTest.java39 String encryptedData = CryptUtils.encrypt(data); in testEncryptDecrypt()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java507 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()

123