/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeKePayload.java | 132 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/ |
D | InvalidKeException.java | 47 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/ |
D | SaProposal.java | 575 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()
|
D | ChildSaProposal.java | 266 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()
|
D | IkeSaProposal.java | 279 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/ |
D | IkeKePayloadTest.java | 109 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()
|
D | IkeNotifyPayloadTest.java | 242 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/ |
D | EpdgChildSaProposal.java | 65 for (int dhGroup : dhGroups) { in buildProposal() 66 saProposalBuilder.addDhGroup(dhGroup); in buildProposal()
|
D | EpdgIkeSaProposal.java | 86 for (int dhGroup : dhGroups) { in buildProposal() 87 saProposalBuilder.addDhGroup(dhGroup); in buildProposal()
|
D | EpdgSaProposal.java | 125 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()
|
D | EpdgTunnelManager.java | 1498 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/ |
D | AbstractSessionStateMachine.java | 273 int dhGroup, in recordMetricsEvent_SaNegotiation() argument 286 dhGroup, in recordMetricsEvent_SaNegotiation() local
|
D | SaRecord.java | 263 keRemotePayload.dhGroup); in getSharedKey() 382 remoteKePayload.dhGroup); in getChildSharedKey()
|
D | IkeSessionStateMachine.java | 2568 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()
|
D | ChildSessionStateMachine.java | 1855 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/ |
D | IkeMetrics.java | 706 @DhGroups int dhGroup, in logSaNegotiation() argument 717 dhGroup, in logSaNegotiation()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionTestBase.java | 261 int dhGroup, in verifyIkeSaMetricsLogged() argument 272 eq(dhGroup), in verifyIkeSaMetricsLogged()
|
D | ChildSessionStateMachineTest.java | 2273 private ChildSaProposal buildSaProposalWithDhGroup(int dhGroup) { in buildSaProposalWithDhGroup() argument 2278 .addDhGroup(dhGroup) in buildSaProposalWithDhGroup()
|
D | IkeSessionStateMachineTest.java | 1723 assertEquals(expectedDhGroup, kePayload.dhGroup); in verifyOutboundKePayload()
|