Home
last modified time | relevance | path

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

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/
DHpkeJniTest.java39 byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_Success()
54 byte[] ciphertext = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncryptDecrypt_Success()
67 byte[] result = HpkeJni.encrypt(/* publicKey= */ null, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyNull_fail()
74 byte[] result = HpkeJni.encrypt(shortPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyShorterThan32_fail()
81 byte[] result = HpkeJni.encrypt(longPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyLongerThan32_fail()
87 byte[] result = HpkeJni.encrypt(sPublicKey, /* plainText= */ null, sAssociatedData); in testHpkeEncrypt_plainTextNull_fail()
94 byte[] result = HpkeJni.encrypt(sPublicKey, emptyPlainText, sAssociatedData); in testHpkeEncrypt_plainTextEmpty_success()
101 byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, /* associatedData= */ null); in testHpkeEncrypt_associatedDataNull_fail()
108 byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, emptyAssociatedData); in testHpkeEncrypt_associatedDataEmpty_success()
142 byte[] result = HpkeJni.encrypt(sPrivateKey, /* ciphertext= */ null, sAssociatedData); in testHpkeDecrypt_ciphertextNull_fail()
/packages/modules/OnDevicePersonalization/tests/commontests/src/com/android/odp/module/common/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()
140 final byte[] result = HpkeJni.encrypt(sPrivateKey, /* ciphertext= */ null, sAssociatedData); in testHpkeDecrypt_ciphertextNull_fail()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothServerSocket.java99 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) in BluetoothServerSocket() argument
104 mSocket = new BluetoothSocket(type, auth, encrypt, port, null); in BluetoothServerSocket()
123 int type, boolean auth, boolean encrypt, int port, boolean pitm, boolean min16DigitPin) in BluetoothServerSocket() argument
128 mSocket = new BluetoothSocket(type, auth, encrypt, port, null, pitm, min16DigitPin); in BluetoothServerSocket()
144 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, ParcelUuid uuid) in BluetoothServerSocket() argument
148 mSocket = new BluetoothSocket(type, auth, encrypt, -1, uuid); in BluetoothServerSocket()
174 boolean encrypt, in BluetoothServerSocket() argument
192 encrypt, in BluetoothServerSocket()
DBluetoothSocket.java232 /*package*/ BluetoothSocket(int type, boolean auth, boolean encrypt, int port, ParcelUuid uuid) in BluetoothSocket() argument
234 this(type, auth, encrypt, port, uuid, false, false); in BluetoothSocket()
253 boolean encrypt, in BluetoothSocket() argument
259 this(type, auth, encrypt, port, uuid, pitm, min16DigitPin, 0, DEFAULT_SOCKET_NAME, 0, 0, 0); in BluetoothSocket()
283 boolean encrypt, in BluetoothSocket() argument
312 mEncrypt = encrypt; in BluetoothSocket()
346 boolean encrypt, in BluetoothSocket() argument
350 this(device, type, auth, encrypt, port, uuid, false, false); in BluetoothSocket()
370 boolean encrypt, in BluetoothSocket() argument
380 encrypt, in BluetoothSocket()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/service/topics/
DHpkeEncrypterTest.java58 mHpkeEncrypter.encrypt(DECODED_PUBLIC_KEY, plainText, EMPTY_CONTEXT_INFO); in testEncryption_success()
86 mHpkeEncrypter.encrypt( in testEncryption_invalidKeyLength_returnsEmpty()
100 mHpkeEncrypter.encrypt( in testEncryption_nullPlainText_throwsException()
111 () -> mHpkeEncrypter.encrypt(/* publicKey */ null, plainText, EMPTY_CONTEXT_INFO)); in testEncryption_nullPublicKey_throwsException()
122 mHpkeEncrypter.encrypt( in testEncryption_nullContextInfo_throwsException()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoConverterTest.java93 AggregateCryptoConverter.encrypt( in testEncrypt_successfully()
105 AggregateCryptoConverter.encrypt( in testEncrypt_successfully_withFilteringId()
117 AggregateCryptoConverter.encrypt( in testEncrypt_payloadPadding_sameSize()
123 AggregateCryptoConverter.encrypt( in testEncrypt_payloadPadding_sameSize()
134 AggregateCryptoConverter.encrypt( in testEncrypt_sharedInfoEmpty_success()
146 AggregateCryptoConverter.encrypt( in testEncrypt_sharedInfoNull_success()
158 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMalformed()
175 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingOperation()
192 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingData()
209 AggregateCryptoConverter.encrypt( in testEncrypt_invalidHistogramMissingValue()
[all …]
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/crypto/
DHpkeEncrypter.java104 return encrypt( in encryptEnvelope()
125 return encrypt( in encryptObservation()
148 private Optional<EncryptedMessage> encrypt( in encrypt() method in HpkeEncrypter
172 mEncrypter.encrypt(publicKey, message.toByteArray(), contextInfoBytes); in encrypt()
DHpkeEncrypt.java31 byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] contextInfo); in encrypt() method
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/encryption/
DHpkeJniEncrypter.java25 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] associatedData) { in encrypt() method in HpkeJniEncrypter
26 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.java38 public byte[] encrypt(byte[] publicKey, byte[] plainText, byte[] contextInfo) { in encrypt() method in HpkeEncryptImpl
39 return HpkeJni.encrypt(publicKey, plainText, contextInfo); in encrypt()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpGatewayTest.java118 ObliviousHttpGateway.encrypt( in encrypt_canBeDecryptedByOhttpClient()
149 ObliviousHttpGateway.encrypt( in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
177 ObliviousHttpGateway.encrypt( in encrypt_missingInfo_throwsError()
200 ObliviousHttpGateway.encrypt( in encrypt_missingInfo_throwsError_withServerAuctionMediaTypeChange()
/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/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/common/java/com/android/odp/module/common/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.java70 public static String encrypt( in encrypt() method in AggregateCryptoConverter
230 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()

123