Home
last modified time | relevance | path

Searched refs:dhGroup (Results 1 – 19 of 19) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java132 public final int dhGroup; field in IkeKePayload
169 dhGroup = Short.toUnsignedInt(inputBuffer.getShort()); in IkeKePayload()
177 if (PUBLIC_KEY_LEN_MAP.contains(dhGroup) && dataSize != PUBLIC_KEY_LEN_MAP.get(dhGroup)) { in IkeKePayload()
180 + PUBLIC_KEY_LEN_MAP.get(dhGroup) in IkeKePayload()
190 private IkeKePayload(int dhGroup, byte[] keyExchangeData, PrivateKey localPrivateKey) { in IkeKePayload() argument
192 this.dhGroup = dhGroup; in IkeKePayload()
293 .putShort((short) dhGroup) in encodeToByteBuffer()
316 public static byte[] getSharedKey(PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getSharedKey() argument
318 switch (dhGroup) { in getSharedKey()
324 return getModpSharedKey(privateKey, remotePublicKey, dhGroup); in getSharedKey()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DInvalidKeException.java47 public InvalidKeException(int dhGroup) { in InvalidKeException() argument
48 super(ERROR_TYPE_INVALID_KE_PAYLOAD, integerToByteArray(dhGroup, EXPECTED_ERROR_DATA_LEN)); in InvalidKeException()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java575 protected void addDh(@DhGroup int dhGroup) { in addDh() argument
578 mProposedDhGroups.add(new DhGroupTransform(dhGroup)); in addDh()
687 public static String getDhGroupString(int dhGroup) { in getDhGroupString() argument
688 if (SUPPORTED_DH_GROUP_TO_STR.contains(dhGroup)) { in getDhGroupString()
689 return SUPPORTED_DH_GROUP_TO_STR.get(dhGroup); in getDhGroupString()
691 return "DH_Unknown_" + dhGroup; in getDhGroupString()
DChildSaProposal.java266 public ChildSaProposal getCopyWithAdditionalDhTransform(int dhGroup) { in getCopyWithAdditionalDhTransform() argument
270 new DhGroupTransform[] {new DhGroupTransform(dhGroup)}, in getCopyWithAdditionalDhTransform()
343 public Builder addDhGroup(@DhGroup int dhGroup) { in addDhGroup() argument
344 addDh(dhGroup); in addDhGroup()
DIkeSaProposal.java279 public Builder addDhGroup(@DhGroup int dhGroup) { in addDhGroup() argument
280 addDh(dhGroup); in addDhGroup()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayloadTest.java109 assertEquals(EXPECTED_DH_GROUP, payload.dhGroup); in testDecodeIkeKePayload()
133 assertEquals(expectedDhGroup, payload.dhGroup); in testDecodeIkeKePayloadWithUnrecognizedDh()
169 assertEquals(EXPECTED_DH_GROUP, payload.dhGroup); in testGetIkeKePayload()
266 assertEquals(SaProposal.DH_GROUP_CURVE_25519, payload.dhGroup); in testGetIkeCurveKePayload()
DIkeNotifyPayloadTest.java242 byte[] dhGroup = new byte[] {(byte) 0x00, (byte) 0x0e}; in testValidateAndBuildIkeExceptionWithData()
245 IkeNotifyPayload payload = new IkeNotifyPayload(ERROR_TYPE_INVALID_KE_PAYLOAD, dhGroup); in testValidateAndBuildIkeExceptionWithData()
250 assertArrayEquals(dhGroup, exception.getErrorData()); in testValidateAndBuildIkeExceptionWithData()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgChildSaProposal.java65 for (int dhGroup : dhGroups) { in buildProposal()
66 saProposalBuilder.addDhGroup(dhGroup); in buildProposal()
DEpdgIkeSaProposal.java86 for (int dhGroup : dhGroups) { in buildProposal()
87 saProposalBuilder.addDhGroup(dhGroup); in buildProposal()
DEpdgSaProposal.java125 for (int dhGroup : dhGroups) { in addProposedDhGroups()
126 if (validateConfig(dhGroup, VALID_DH_GROUPS, CONFIG_TYPE_DH_GROUP)) { in addProposedDhGroups()
127 mProposedDhGroups.add(dhGroup); in addProposedDhGroups()
DEpdgTunnelManager.java1498 for (int dhGroup : dhGroups) { in buildIkeSaProposal()
1499 if (validateConfig(dhGroup, VALID_DH_GROUPS, CONFIG_TYPE_DH_GROUP)) { in buildIkeSaProposal()
1500 saProposalBuilder.addDhGroup(dhGroup); in buildIkeSaProposal()
1575 for (int dhGroup : dhGroups) { in buildIkeSaAeadProposal()
1576 if (validateConfig(dhGroup, VALID_DH_GROUPS, CONFIG_TYPE_DH_GROUP)) { in buildIkeSaAeadProposal()
1577 saProposalBuilder.addDhGroup(dhGroup); in buildIkeSaAeadProposal()
1645 for (int dhGroup : dhGroups) { in buildChildSaProposal()
1646 if (validateConfig(dhGroup, VALID_DH_GROUPS, CONFIG_TYPE_DH_GROUP)) { in buildChildSaProposal()
1647 saProposalBuilder.addDhGroup(dhGroup); in buildChildSaProposal()
1724 for (int dhGroup : dhGroups) { in buildAeadChildSaProposal()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DAbstractSessionStateMachine.java273 int dhGroup, in recordMetricsEvent_SaNegotiation() argument
286 dhGroup, in recordMetricsEvent_SaNegotiation() local
DSaRecord.java263 keRemotePayload.dhGroup); in getSharedKey()
382 remoteKePayload.dhGroup); in getChildSharedKey()
DIkeSessionStateMachine.java2568 if (reqKePayload.dhGroup != mSaProposal.getDhGroups().get(0)) { in handleRequestIkeMessage()
3655 if (reqKePayload.dhGroup != respKePayload.dhGroup in validateIkeInitResp()
3656 && respKePayload.dhGroup != mInitialSetupData.peerSelectedDhGroup) { in validateIkeInitResp()
4883 if (reqKePayload.dhGroup != respKePayload.dhGroup) { in validateIkeRekeyResp()
DChildSessionStateMachine.java1855 reqKePayload.dhGroup, in handleCreateChildRequest()
2739 if (expectKePayload && (kePayload == null || dhTransforms[0].id != kePayload.dhGroup)) { in validateKePayloads()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeMetrics.java706 @DhGroups int dhGroup, in logSaNegotiation() argument
717 dhGroup, in logSaNegotiation()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionTestBase.java261 int dhGroup, in verifyIkeSaMetricsLogged() argument
272 eq(dhGroup), in verifyIkeSaMetricsLogged()
DChildSessionStateMachineTest.java2273 private ChildSaProposal buildSaProposalWithDhGroup(int dhGroup) { in buildSaProposalWithDhGroup() argument
2278 .addDhGroup(dhGroup) in buildSaProposalWithDhGroup()
DIkeSessionStateMachineTest.java1723 assertEquals(expectedDhGroup, kePayload.dhGroup); in verifyOutboundKePayload()