Home
last modified time | relevance | path

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

12

/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DChunkEncryptorTest.java103 EncryptedChunk chunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_withHash_resultContainsHashAsKey()
110 EncryptedChunk chunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_generatesHmacOfPlaintext()
121 EncryptedChunk chunk1 = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_whenInvokedAgain_generatesNewNonce()
123 EncryptedChunk chunk2 = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_whenInvokedAgain_generatesNewNonce()
130 EncryptedChunk chunk1 = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_whenInvokedAgain_generatesNewCiphertext()
132 EncryptedChunk chunk2 = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_whenInvokedAgain_generatesNewCiphertext()
139 EncryptedChunk encryptedChunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_generates12ByteNonce()
147 EncryptedChunk chunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_decryptedResultCorrespondsToPlaintext()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DSecureBoxTest.java198 state = SecureBox.encrypt(THM_PUBLIC_KEY, TEST_SHARED_SECRET, TEST_HEADER, state); in encryptThenDecrypt()
209 SecureBox.encrypt( in encryptThenDecrypt_nullPublicPrivateKeys()
220 SecureBox.encrypt( in encryptThenDecrypt_nullSharedSecret()
230 SecureBox.encrypt( in encryptThenDecrypt_nullHeader()
240 SecureBox.encrypt( in encryptThenDecrypt_nullPayload()
257 SecureBox.encrypt( in encrypt_nullPublicKeyAndSharedSecret()
296 SecureBox.encrypt(THM_PUBLIC_KEY, TEST_SHARED_SECRET, TEST_HEADER, TEST_PAYLOAD); in decrypt_badAuthenticationTag()
314 () -> SecureBox.encrypt(publicKey, TEST_SHARED_SECRET, TEST_HEADER, TEST_PAYLOAD)); in encrypt_invalidPublicKey()
320 SecureBox.encrypt(THM_PUBLIC_KEY, TEST_SHARED_SECRET, TEST_HEADER, TEST_PAYLOAD); in decrypt_invalidPrivateKey()
333 SecureBox.encrypt(THM_PUBLIC_KEY, TEST_SHARED_SECRET, TEST_HEADER, TEST_PAYLOAD); in decrypt_publicKeyOutsideCurve()
DKeySyncUtilsTest.java253 byte[] encryptedPayload = SecureBox.encrypt( in decryptRecoveryClaimResponse_decryptsAValidResponse()
269 byte[] encryptedPayload = SecureBox.encrypt( in decryptRecoveryClaimResponse_throwsIfCannotDecrypt()
/frameworks/base/core/java/android/bluetooth/
DBluetoothServerSocket.java97 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) in BluetoothServerSocket() argument
100 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket()
118 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port, in BluetoothServerSocket() argument
122 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null, mitm, in BluetoothServerSocket()
139 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, ParcelUuid uuid) in BluetoothServerSocket() argument
141 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, -1, uuid); in BluetoothServerSocket()
DBluetoothSocket.java178 /*package*/ BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, in BluetoothSocket() argument
180 this(type, fd, auth, encrypt, device, port, uuid, false, false); in BluetoothSocket()
198 /*package*/ BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, in BluetoothSocket() argument
217 mEncrypt = encrypt; in BluetoothSocket()
285 private BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address, in BluetoothSocket() argument
287 this(type, fd, auth, encrypt, new BluetoothDevice(address), port, null, false, false); in BluetoothSocket()
DBluetoothAdapter.java2525 boolean auth, boolean encrypt) throws IOException { in createNewRfcommSocketAndRecord() argument
2527 socket = new BluetoothServerSocket(BluetoothSocket.TYPE_RFCOMM, auth, encrypt, in createNewRfcommSocketAndRecord()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java69 private static byte[] encrypt(SecretKey key, byte[] blob) in encrypt() method in SyntheticPasswordCrypto
96 public static byte[] encrypt(byte[] keyBytes, byte[] personalisation, byte[] message) { in encrypt() method in SyntheticPasswordCrypto
101 return encrypt(key, message); in encrypt()
176 byte[] intermediate = encrypt(applicationId, APPLICATION_ID_PERSONALIZATION, data); in createBlob()
177 return encrypt(secretKey, intermediate); in createBlob()
DSyntheticPasswordManager.java195 this.E0 = SyntheticPasswordCrypto.encrypt(this.syntheticPassword.getBytes(), in initialize()
766 tokenData.secdiscardableOnDisk = SyntheticPasswordCrypto.encrypt(tokenData.weaverSecret, in createTokenBasedSyntheticPassword()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java92 return SecureBox.encrypt( in thmEncryptRecoveryKey()
128 return SecureBox.encrypt( in locallyEncryptRecoveryKey()
176 byte[] encryptedKey = SecureBox.encrypt( in encryptKeysWithRecoveryKey()
218 return SecureBox.encrypt( in encryptRecoveryClaim()
DSecureBox.java175 public static byte[] encrypt( in encrypt() method in SecureBox
/frameworks/native/headers/media_plugin/media/hardware/
DHDCPAPI.h105 virtual status_t encrypt( in encrypt() function
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DChunkEncryptor.java58 public EncryptedChunk encrypt(ChunkHash plaintextHash, byte[] plaintext) in encrypt() method in ChunkEncryptor
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java84 public @Nullable EncryptedData encrypt(byte[] data) { in encrypt() method in WifiConfigStoreEncryptionUtil
DXmlUtil.java395 encryptedData = encryptionUtil.encrypt(preSharedKey.getBytes()); in writePreSharedKeyToXml()
1103 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DIDrm.h118 virtual status_t encrypt(Vector<uint8_t> const &sessionId,
DDrmHal.h167 virtual status_t encrypt(Vector<uint8_t> const &sessionId,
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h110 status_t encrypt(Vector<uint8_t> const &sessionId,
DMockDrmCryptoPlugin.cpp552 status_t MockDrmPlugin::encrypt(Vector<uint8_t> const &sessionId, in encrypt() function in android::MockDrmPlugin
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp756 const uint8_t *input, uint8_t *output, size_t dataSize, bool encrypt) { in encrypt_decrypt_common() argument
783 if (encrypt) { in encrypt_decrypt_common()
784 status = mObj->mDrm->encrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h193 virtual status_t encrypt( in encrypt() function
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h363 virtual status_t encrypt(Vector<uint8_t> const &sessionId,
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java122 when(mWifiConfigStoreEncryptionUtil.encrypt(pskNetwork.preSharedKey.getBytes())) in testPskWifiConfigurationSerializeDeserializeWithEncryption()
434 when(mWifiConfigStoreEncryptionUtil.encrypt(TEST_PASSWORD.getBytes())) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h218 Return<void> encrypt( in encrypt() function
/frameworks/av/drm/libmediadrm/
DIDrm.cpp606 virtual status_t encrypt(Vector<uint8_t> const &sessionId, in encrypt() function
1168 uint32_t result = encrypt(sessionId, keyId, input, iv, output); in onTransact()
/frameworks/base/media/java/android/media/
DMediaDrm.java1726 public byte[] encrypt(

12