Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java462 protected void addDh(@DhGroup int dhGroup) { in addDh() argument
465 mProposedDhGroups.add(new DhGroupTransform(dhGroup)); in addDh()
526 public static boolean isSupportedDhGroup(@DhGroup int dhGroup) { in isSupportedDhGroup() argument
527 return SUPPORTED_DH_GROUP_TO_STR.get(dhGroup) != null; in isSupportedDhGroup()
571 public static String getDhGroupString(int dhGroup) { in getDhGroupString() argument
572 if (isSupportedDhGroup(dhGroup)) { in getDhGroupString()
573 return SUPPORTED_DH_GROUP_TO_STR.get(dhGroup); in getDhGroupString()
575 return "DH_Unknown_" + dhGroup; in getDhGroupString()
DChildSaProposal.java121 public ChildSaProposal getCopyWithAdditionalDhTransform(int dhGroup) { in getCopyWithAdditionalDhTransform() argument
125 new DhGroupTransform[] {new DhGroupTransform(dhGroup)}, in getCopyWithAdditionalDhTransform()
169 public Builder addDhGroup(@DhGroup int dhGroup) { in addDhGroup() argument
170 addDh(dhGroup); in addDhGroup()
DIkeSaProposal.java157 public Builder addDhGroup(@DhGroup int dhGroup) { in addDhGroup() argument
158 addDh(dhGroup); in addDhGroup()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java73 public final int dhGroup; field in IkeKePayload
109 dhGroup = Short.toUnsignedInt(inputBuffer.getShort()); in IkeKePayload()
116 switch (dhGroup) { in IkeKePayload()
157 dhGroup = dh; in IkeKePayload()
162 switch (dhGroup) { in IkeKePayload()
229 .putShort((short) dhGroup) in encodeToByteBuffer()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/exceptions/
DInvalidKeException.java40 public InvalidKeException(int dhGroup) { in InvalidKeException() argument
41 super(ERROR_TYPE_INVALID_KE_PAYLOAD, integerToByteArray(dhGroup, EXPECTED_ERROR_DATA_LEN)); in InvalidKeException()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java161 byte[] dhGroup = new byte[] {(byte) 0x00, (byte) 0x0e}; in testValidateAndBuildIkeExceptionWithData()
164 IkeNotifyPayload payload = new IkeNotifyPayload(ERROR_TYPE_INVALID_KE_PAYLOAD, dhGroup); in testValidateAndBuildIkeExceptionWithData()
169 assertArrayEquals(dhGroup, exception.getErrorData()); in testValidateAndBuildIkeExceptionWithData()
DIkeKePayloadTest.java122 assertEquals(EXPECTED_DH_GROUP, payload.dhGroup); in testDecodeIkeKePayload()
176 assertEquals(EXPECTED_DH_GROUP, payload.dhGroup); in testGetIkeKePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java1591 saProposal = mSaProposal.getCopyWithAdditionalDhTransform(reqKePayload.dhGroup); in handleCreateChildRequest()
1713 mSaProposal.getCopyWithAdditionalDhTransform(reqKePayload.dhGroup); in isKePayloadAcceptable()
2448 if (expectKePayload && (kePayload == null || dhTransforms[0].id != kePayload.dhGroup)) { in validateKePayloads()
DIkeSessionStateMachine.java2958 if (reqKePayload.dhGroup != respKePayload.dhGroup in validateIkeInitResp()
2959 && respKePayload.dhGroup != mPeerSelectedDhGroup) { in validateIkeInitResp()
3864 if (reqKePayload.dhGroup != respKePayload.dhGroup) { in validateIkeRekeyResp()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java1885 private ChildSaProposal buildSaProposalWithDhGroup(int dhGroup) { in buildSaProposalWithDhGroup() argument
1890 .addDhGroup(dhGroup) in buildSaProposalWithDhGroup()