/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipherTest.java | 111 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()
|
D | IkeNormalModeCipherTest.java | 117 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()
|
D | IkeMacIntegrityTest.java | 133 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/ |
D | IkeEncryptedPayloadBody.java | 132 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()
|
D | IkeSkPayload.java | 127 byte[] encryptionKey) { in IkeSkPayload() argument 137 encryptionKey); in IkeSkPayload() 150 byte[] encryptionKey) { in IkeSkPayload() argument 164 encryptionKey); in IkeSkPayload()
|
D | IkeSkfPayload.java | 110 byte[] encryptionKey, in IkeSkfPayload() argument 121 encryptionKey); in IkeSkfPayload()
|
D | IkeMessage.java | 450 byte[] encryptionKey, in encryptAndEncode() argument 462 encryptionKey); in encryptAndEncode() 516 encryptionKey, in encryptAndEncode()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | CarTrustedDeviceService.java | 274 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/ |
D | ConnectedDeviceStorageTest.java | 136 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/ |
D | SaRecord.java | 490 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/ |
D | ConnectedDeviceStorage.java | 144 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/ |
D | IkeMessageTest.java | 864 byte[] encryptionKey = new byte[0]; in testEncodeAndEncryptFragments() 893 encryptionKey, in testEncodeAndEncryptFragments() 934 .encrypt(any(), eq(encryptionKey), eq(iv)); in testEncodeAndEncryptFragments()
|