Searched refs:secretKeySpec (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairGattServer.java | 618 private byte[] encrypt(byte[] data, SecretKeySpec secretKeySpec) { in encrypt() argument 619 if (secretKeySpec == null) { in encrypt() 625 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec); in encrypt() 640 private byte[] decrypt(byte[] encryptedData, SecretKeySpec secretKeySpec) { in decrypt() argument 641 if (secretKeySpec == null) { in decrypt() 647 cipher.init(Cipher.DECRYPT_MODE, secretKeySpec); in decrypt() 805 SecretKeySpec secretKeySpec) { in validateRequestAgainstKey() argument 807 byte[] decryptedRequest = decrypt(encryptedRequest, secretKeySpec); in validateRequestAgainstKey()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | PacketUtils.java | 584 final SecretKeySpec secretKeySpec; in getCipherText() local 588 secretKeySpec = new SecretKeySpec(key, algoName); in getCipherText() 594 secretKeySpec = new SecretKeySpec(secretKey, algoName); in getCipherText() 608 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText() 638 final SecretKeySpec secretKeySpec = new SecretKeySpec(secretKey, algoName); in getCipherText() local 651 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | PacketUtils.java | 397 SecretKeySpec secretKeySpec = new SecretKeySpec(key, AES); in getCiphertext() local 401 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCiphertext()
|