Home
last modified time | relevance | path

Searched refs:encryptionKey (Results 1 – 12 of 12) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeCombinedModeCipherTest.java111 byte[] encryptionKey = TestUtils.hexStringToByteArray(KEY + "00"); in testEncryptWithWrongKeyLen()
115 mUnencryptedPaddedData, mAdditionalAuthData, encryptionKey, mIv); in testEncryptWithWrongKeyLen()
124 byte[] encryptionKey = new byte[mAesGcmKey.length]; in testDecrypWithWrongKey()
125 new Random().nextBytes(encryptionKey); in testDecrypWithWrongKey()
129 mEncryptedPaddedDataWithChecksum, mAdditionalAuthData, encryptionKey, mIv); in testDecrypWithWrongKey()
149 byte[] encryptionKey = TestUtils.hexStringToByteArray(KEY + "00"); in buildIpSecAlgorithmWithInvalidKey()
152 mAesGcm16Cipher.buildIpSecAlgorithmWithKey(encryptionKey); in buildIpSecAlgorithmWithInvalidKey()
DIkeNormalModeCipherTest.java117 byte[] encryptionKey = TestUtils.hexStringToByteArray(ENCR_KEY_FROM_INIT_TO_RESP + "00"); in testEncryptWithWrongKey()
120 mAesCbcCipher.encrypt(mEncryptedPaddedData, encryptionKey, mIv); in testEncryptWithWrongKey()
152 byte[] encryptionKey = TestUtils.hexStringToByteArray(ENCR_KEY_FROM_INIT_TO_RESP + "00"); in buildIpSecAlgorithmWithInvalidKey()
155 mAesCbcCipher.buildIpSecAlgorithmWithKey(encryptionKey); in buildIpSecAlgorithmWithInvalidKey()
DIkeMacIntegrityTest.java133 byte[] encryptionKey = TestUtils.hexStringToByteArray(INTEGRITY_KEY_HEX_STRING + "00"); in buildIpSecAlgorithmWithInvalidKey()
136 mHmacSha1IntegrityMac.buildIpSecAlgorithmWithKey(encryptionKey); in buildIpSecAlgorithmWithInvalidKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java132 byte[] encryptionKey) { in IkeEncryptedPayloadBody() argument
141 encryptionKey, in IkeEncryptedPayloadBody()
156 byte[] encryptionKey, in IkeEncryptedPayloadBody() argument
170 encryptionKey, in IkeEncryptedPayloadBody()
187 encryptionKey, in IkeEncryptedPayloadBody()
265 byte[] encryptionKey, in normalModeEncrypt() argument
271 return encryptCipher.encrypt(paddedData, encryptionKey, iv); in normalModeEncrypt()
295 byte[] encryptionKey, in combinedModeEncrypt() argument
317 paddedData, authenticatedSectionBuffer.array(), encryptionKey, iv); in combinedModeEncrypt()
DIkeSkPayload.java127 byte[] encryptionKey) { in IkeSkPayload() argument
137 encryptionKey); in IkeSkPayload()
150 byte[] encryptionKey) { in IkeSkPayload() argument
164 encryptionKey); in IkeSkPayload()
DIkeSkfPayload.java110 byte[] encryptionKey, in IkeSkfPayload() argument
121 encryptionKey); in IkeSkfPayload()
DIkeMessage.java450 byte[] encryptionKey, in encryptAndEncode() argument
462 encryptionKey); in encryptAndEncode()
516 encryptionKey, in encryptAndEncode()
/packages/services/Car/service/src/com/android/car/trust/
DCarTrustedDeviceService.java274 boolean saveEncryptionKey(@Nullable String deviceId, @Nullable byte[] encryptionKey) { in saveEncryptionKey() argument
275 if (encryptionKey == null || deviceId == null) { in saveEncryptionKey()
278 String encryptedKey = encryptWithKeyStore(KEY_ALIAS, encryptionKey); in saveEncryptionKey()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorageTest.java136 private void addAssociatedDevice(int userId, AssociatedDevice device, byte[] encryptionKey) { in addAssociatedDevice() argument
138 mConnectedDeviceStorage.saveEncryptionKey(device.getDeviceId(), encryptionKey); in addAssociatedDevice() local
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DSaRecord.java490 byte[] encryptionKey, in makeIpSecTransform() argument
497 encryptionAlgo.buildIpSecAlgorithmWithKey(encryptionKey)); in makeIpSecTransform()
499 builder.setEncryption(encryptionAlgo.buildIpSecAlgorithmWithKey(encryptionKey)); in makeIpSecTransform()
1175 byte[] encryptionKey, in makeIpSecTransform() argument
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorage.java144 public void saveEncryptionKey(@NonNull String deviceId, @NonNull byte[] encryptionKey) { in saveEncryptionKey() argument
145 String encryptedKey = encryptWithKeyStore(KEY_ALIAS, encryptionKey); in saveEncryptionKey()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java864 byte[] encryptionKey = new byte[0]; in testEncodeAndEncryptFragments()
893 encryptionKey, in testEncodeAndEncryptFragments()
934 .encrypt(any(), eq(encryptionKey), eq(iv)); in testEncodeAndEncryptFragments()