Home
last modified time | relevance | path

Searched refs:IkeKePayload (Results 1 – 9 of 9) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayloadTest.java119 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testDecodeIkeKePayload()
139 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testDecodeIkeKePayloadWithInvalidKeData()
148 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testEncodeIkeKePayload()
160 IkeKePayload payload = in testGetIkeKePayload()
161 new IkeKePayload(SaProposal.DH_GROUP_1024_BIT_MODP, createMockRandomFactory()); in testGetIkeKePayload()
187 byte[] sharedKeyBytes = IkeKePayload.getSharedKey(mPrivateKeySpec, remotePublicKey); in testGetSharedkey()
198 byte[] sharedKeyBytes = IkeKePayload.getSharedKey(mPrivateKeySpec, remotePublicKey); in testGetSharedkeyWithInvalidRemoteKey()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandomTest.java27 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
81 IkeKePayload kePayloadOne = new IkeKePayload(DH_GROUP_2048_BIT_MODP, rFactory); in testDeterministicSecureRandomInKePayload()
82 IkeKePayload kePayloadTwo = new IkeKePayload(DH_GROUP_2048_BIT_MODP, rFactory); in testDeterministicSecureRandomInKePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DSaRecord.java37 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
254 IkeKePayload keLocalPayload = in getSharedKey()
256 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in getSharedKey()
257 IkeKePayload keRemotePayload = in getSharedKey()
259 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in getSharedKey()
261 return IkeKePayload.getSharedKey( in getSharedKey()
357 IkeKePayload keInitPayload = in makeChildSaRecord()
359 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class, reqPayloads); in makeChildSaRecord()
361 IkeKePayload keRespPayload = in makeChildSaRecord()
363 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class, respPayloads); in makeChildSaRecord()
[all …]
DChildSessionStateMachine.java87 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
1581 IkeKePayload reqKePayload = in handleCreateChildRequest()
1583 PAYLOAD_TYPE_KE, IkeKePayload.class, reqPayloads); in handleCreateChildRequest()
1711 private boolean isKePayloadAcceptable(IkeKePayload reqKePayload) { in isKePayloadAcceptable()
2069 payloadList.add(new IkeKePayload(dhGroups[0].id, randomFactory)); in getChildCreatePayloads()
2444 IkeKePayload kePayload = in validateKePayloads()
2446 PAYLOAD_TYPE_KE, IkeKePayload.class, inboundPayloads); in validateKePayloads()
DIkeSessionStateMachine.java123 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
2862 IkeKePayload respKePayload = null; in validateIkeInitResp()
2879 respKePayload = (IkeKePayload) payload; in validateIkeInitResp()
2956 IkeKePayload reqKePayload = in validateIkeInitResp()
2957 reqMsg.getPayloadForType(IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in validateIkeInitResp()
3860 IkeKePayload reqKePayload = in validateIkeRekeyResp()
3861 reqMsg.getPayloadForType(IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in validateIkeRekeyResp()
3862 IkeKePayload respKePayload = in validateIkeRekeyResp()
3863 respMsg.getPayloadForType(IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in validateIkeRekeyResp()
4797 payloadList.add(new IkeKePayload(selectedDhGroup, randomFactory)); in getCreateIkeSaPayloads()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java57 public final class IkeKePayload extends IkePayload { class
101 IkeKePayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeKePayload() method in IkeKePayload
154 public IkeKePayload(@SaProposal.DhGroup int dh, RandomnessFactory randomnessFactory) { in IkeKePayload() method in IkeKePayload
DIkePayloadFactory.java66 return new IkeKePayload(isCritical, payloadBody); in decodeIkePayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java110 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
543 PAYLOAD_TYPE_KE, IkeKePayload.class, outboundPayloads)); in verifyOutboundCreatePayloadTypes()
1726 new IkeKePayload(SaProposal.DH_GROUP_1024_BIT_MODP, createMockRandomFactory())); in testValidateExpectKeExistCase()
1774 new IkeKePayload(SaProposal.DH_GROUP_2048_BIT_MODP, createMockRandomFactory())); in testThrowWhenKeHasMismatchedDhGroup()
1799 new IkeKePayload(SaProposal.DH_GROUP_2048_BIT_MODP, createMockRandomFactory())); in testThrowForUnexpectedKe()
1867 PAYLOAD_TYPE_KE, IkeKePayload.class, reqPayloadList)); in verifyOutboundRekeyKePayload()
1922 new IkeKePayload(IkeSaProposal.DH_GROUP_2048_BIT_MODP, createMockRandomFactory())); in testRemoteRekeyWithKePayload()
DIkeSessionStateMachineTest.java140 import com.android.internal.net.ipsec.ike.message.IkeKePayload;
3068 IkeKePayload kePayload = in testRekeyIkeLocalCreateSendsRequest()
3069 rekeyMsg.getPayloadForType(IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in testRekeyIkeLocalCreateSendsRequest()
3504 rekeyCreateResp.getPayloadForType(IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class)); in testRekeyIkeRemoteCreate()