Home
last modified time | relevance | path

Searched refs:ikeSaRecord (Results 1 – 4 of 4) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java983 private void closeIkeSaRecord(IkeSaRecord ikeSaRecord, boolean expectSaClosed) { in closeIkeSaRecord() argument
984 if (ikeSaRecord == null) return; in closeIkeSaRecord()
986 removeIkeSaRecord(ikeSaRecord); in closeIkeSaRecord()
987 ikeSaRecord.close(); in closeIkeSaRecord()
993 + ikeSaRecord.getLocalSpi() in closeIkeSaRecord()
1373 void sendEncryptedIkeMessage(IkeSaRecord ikeSaRecord, IkeMessage msg) { in sendEncryptedIkeMessage() argument
1378 ikeSaRecord, in sendEncryptedIkeMessage()
1385 ikeSaRecord.updateLastSentRespAllPackets(Arrays.asList(packetList)); in sendEncryptedIkeMessage()
1392 IkeSaRecord ikeSaRecord, int messageId, @ErrorType int errorType) { in buildAndSendErrorNotificationResponse() argument
1394 buildAndSendNotificationResponse(ikeSaRecord, messageId, error); in buildAndSendErrorNotificationResponse()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DSaRecordTest.java197 IkeSaRecord ikeSaRecord = in testMakeIkeSaRecord() local
200 assertTrue(ikeSaRecord.isLocalInit); in testMakeIkeSaRecord()
201 assertEquals(IKE_INIT_SPI, ikeSaRecord.getInitiatorSpi()); in testMakeIkeSaRecord()
202 assertEquals(IKE_RESP_SPI, ikeSaRecord.getResponderSpi()); in testMakeIkeSaRecord()
204 TestUtils.hexStringToByteArray(IKE_SK_D_HEX_STRING), ikeSaRecord.getSkD()); in testMakeIkeSaRecord()
207 ikeSaRecord.getOutboundIntegrityKey()); in testMakeIkeSaRecord()
210 ikeSaRecord.getInboundIntegrityKey()); in testMakeIkeSaRecord()
213 ikeSaRecord.getOutboundEncryptionKey()); in testMakeIkeSaRecord()
216 ikeSaRecord.getInboundDecryptionKey()); in testMakeIkeSaRecord()
218 TestUtils.hexStringToByteArray(IKE_SK_PRF_INIT_HEX_STRING), ikeSaRecord.getSkPi()); in testMakeIkeSaRecord()
[all …]
DIkeSessionStateMachineTest.java416 IkeSaRecord ikeSaRecord, in makeDummyEncryptedReceivedIkePacket() argument
425 ikeSaRecord, eType, isResp, payloadList); in makeDummyEncryptedReceivedIkePacket()
429 IkeSaRecord ikeSaRecord, in makeDummyEncryptedReceivedIkePacketWithPayloadList() argument
435 ikeSaRecord, in makeDummyEncryptedReceivedIkePacketWithPayloadList()
439 ? ikeSaRecord.getLocalRequestMessageId() in makeDummyEncryptedReceivedIkePacketWithPayloadList()
440 : ikeSaRecord.getRemoteRequestMessageId(), in makeDummyEncryptedReceivedIkePacketWithPayloadList()
446 IkeSaRecord ikeSaRecord, in makeDummyEncryptedReceivedIkePacketWithPayloadList() argument
453 boolean fromIkeInit = !ikeSaRecord.isLocalInit; in makeDummyEncryptedReceivedIkePacketWithPayloadList()
456 ikeSaRecord.getInitiatorSpi(), in makeDummyEncryptedReceivedIkePacketWithPayloadList()
457 ikeSaRecord.getResponderSpi(), in makeDummyEncryptedReceivedIkePacketWithPayloadList()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java134 IkeSaRecord ikeSaRecord, in decode() argument
142 ikeSaRecord, in decode()
229 IkeSaRecord ikeSaRecord, in encryptAndEncode() argument
233 integrityMac, encryptCipher, ikeSaRecord, this, supportFragment, fragSize); in encryptAndEncode()
368 IkeSaRecord ikeSaRecord, in encryptAndEncode() argument
400 IkeSaRecord ikeSaRecord, in decode() argument
422 IkeSaRecord ikeSaRecord, in encryptAndEncode() argument
436 ikeSaRecord.getOutboundIntegrityKey(), in encryptAndEncode()
437 ikeSaRecord.getOutboundEncryptionKey(), in encryptAndEncode()
576 IkeSaRecord ikeSaRecord, in decode() argument
[all …]