Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java26 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
213 private final DhGroupTransform[] mDhGroups;
220 DhGroupTransform[] dhGroups) { in SaProposal()
295 DhGroupTransform[] selected, DhGroupTransform[] selectFrom) { in isDhGroupTransformSelectedFrom()
297 selected = new DhGroupTransform[] {new DhGroupTransform(DH_GROUP_NONE)}; in isDhGroupTransformSelectedFrom()
300 selectFrom = new DhGroupTransform[] {new DhGroupTransform(DH_GROUP_NONE)}; in isDhGroupTransformSelectedFrom()
365 public DhGroupTransform[] getDhGroupTransforms() { in getDhGroupTransforms()
405 protected final LinkedHashSet<DhGroupTransform> mProposedDhGroups = new LinkedHashSet<>();
465 mProposedDhGroups.add(new DhGroupTransform(dhGroup)); in addDh()
DChildSaProposal.java23 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
64 DhGroupTransform[] dhGroups, in ChildSaProposal()
90 new DhGroupTransform[0], in getCopyWithoutDhTransform()
125 new DhGroupTransform[] {new DhGroupTransform(dhGroup)}, in getCopyWithAdditionalDhTransform()
204 mProposedDhGroups.toArray(new DhGroupTransform[mProposedDhGroups.size()]), in build()
DIkeSaProposal.java24 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
68 DhGroupTransform[] dhGroups) { in IkeSaProposal()
200 private DhGroupTransform[] buildDhGroupsOrThrow() { in buildDhGroupsOrThrow()
206 for (DhGroupTransform transform : mProposedDhGroups) { in buildDhGroupsOrThrow()
213 return mProposedDhGroups.toArray(new DhGroupTransform[mProposedDhGroups.size()]); in buildDhGroupsOrThrow()
234 DhGroupTransform[] dhGroupTransforms = buildDhGroupsOrThrow(); in build()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java36 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
51 private final DhGroupTransform mDhGroup1024Transform;
66 mDhGroup1024Transform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in SaProposalTest()
90 new DhGroupTransform[] {mDhGroup1024Transform}, proposal.getDhGroupTransforms()); in testBuildIkeSaProposalWithNormalModeCipher()
111 new DhGroupTransform[] {mDhGroup1024Transform}, proposal.getDhGroupTransforms()); in testBuildIkeSaProposalWithCombinedModeCipher()
133 new DhGroupTransform[] {mDhGroup1024Transform}, proposal.getDhGroupTransforms()); in testBuildChildSaProposalWithNormalCipher()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java619 List<DhGroupTransform> dhGroupList = new LinkedList<>(); in readFrom()
636 dhGroupList.add((DhGroupTransform) transform); in readFrom()
653 dhGroupList.toArray(new DhGroupTransform[dhGroupList.size()])); in readFrom()
661 dhGroupList.toArray(new DhGroupTransform[dhGroupList.size()]), in readFrom()
1035 return new DhGroupTransform(id, attributeList); in readFrom()
1479 public static final class DhGroupTransform extends Transform { class in IkeSaPayload
1485 public DhGroupTransform(@DhGroup int id) { in DhGroupTransform() method in IkeSaPayload.DhGroupTransform
1496 protected DhGroupTransform(int id, List<Attribute> attributeList) in DhGroupTransform() method in IkeSaPayload.DhGroupTransform
1508 if (!(o instanceof DhGroupTransform)) return false; in equals()
1510 DhGroupTransform other = (DhGroupTransform) o; in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java115 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
210 private DhGroupTransform mChildDhGroupTransform;
235 mChildDhGroupTransform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in ChildSessionStateMachineTest()
1721 doReturn(new DhGroupTransform[] {mChildDhGroupTransform}) in testValidateExpectKeExistCase()
1736 doReturn(new DhGroupTransform[0]).when(mMockNegotiatedProposal).getDhGroupTransforms(); in testValidateExpectNoKeExistCase()
1747 doReturn(new DhGroupTransform[] {mChildDhGroupTransform}) in testThrowWhenKeMissing()
1769 doReturn(new DhGroupTransform[] {mChildDhGroupTransform}) in testThrowWhenKeHasMismatchedDhGroup()
1793 DhGroupTransform noneGroup = new DhGroupTransform(SaProposal.DH_GROUP_NONE); in testThrowForUnexpectedKe()
1794 doReturn(new DhGroupTransform[] {noneGroup}) in testThrowForUnexpectedKe()
DIkeSessionStateMachineTest.java153 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
325 private DhGroupTransform mIkeDhGroupTransform;
714 mIkeDhGroupTransform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in setUp()
4471 DhGroupTransform dhGroupTransform = new DhGroupTransform(SaProposal.DH_GROUP_2048_BIT_MODP); in testHandleUnexpectedExceptionInEnterState()
4474 .thenReturn(new DhGroupTransform[] {dhGroupTransform}); in testHandleUnexpectedExceptionInEnterState()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java52 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
152 private DhGroupTransform mDhGroup1024Transform;
193 mDhGroup1024Transform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in setUp()
445 assertTrue(transform instanceof DhGroupTransform); in testDecodeDhGroupTransform()
464 new DhGroupTransform(-1); in testConstructDhGroupTransformWithUnsupportedId()
957 DhGroupTransform unsupportedDh = proposal.saProposal.getDhGroupTransforms()[0];
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java94 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.DhGroupTransform;
1521 Set<DhGroupTransform> dhGroupSet = new LinkedHashSet<>(); in addDhGroupsFromChildSessionParamsIfAbsent()
1527 DhGroupTransform[] dhGroups = new DhGroupTransform[dhGroupSet.size()]; in addDhGroupsFromChildSessionParamsIfAbsent()
2065 DhGroupTransform[] dhGroups = in getChildCreatePayloads()
2435 DhGroupTransform[] dhTransforms = negotiatedProposal.getDhGroupTransforms(); in validateKePayloads()