/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | SaProposalTest.java | 314 IkeSaProposal saProposal = in testBuildIkeSaProposalWithNormalModeCipher() local 317 assertEquals(IKE_NORMAL_MODE_CIPHERS, saProposal.getEncryptionAlgorithms()); in testBuildIkeSaProposalWithNormalModeCipher() 318 assertEquals(IKE_INTEGRITY_ALGOS, saProposal.getIntegrityAlgorithms()); in testBuildIkeSaProposalWithNormalModeCipher() 319 assertEquals(PRFS, saProposal.getPseudorandomFunctions()); in testBuildIkeSaProposalWithNormalModeCipher() 320 assertEquals(DH_GROUPS, saProposal.getDhGroups()); in testBuildIkeSaProposalWithNormalModeCipher() 325 IkeSaProposal saProposal = in testBuildIkeSaProposalWithCombinedModeCipher() local 328 assertEquals(IKE_COMBINED_MODE_CIPHERS, saProposal.getEncryptionAlgorithms()); in testBuildIkeSaProposalWithCombinedModeCipher() 329 assertEquals(PRFS, saProposal.getPseudorandomFunctions()); in testBuildIkeSaProposalWithCombinedModeCipher() 330 assertEquals(DH_GROUPS, saProposal.getDhGroups()); in testBuildIkeSaProposalWithCombinedModeCipher() 331 assertTrue(saProposal.getIntegrityAlgorithms().isEmpty()); in testBuildIkeSaProposalWithCombinedModeCipher() [all …]
|
D | IkeSessionPskTestBase.java | 78 for (IkeSaProposal saProposal : saProposals) { in createIkeParamsBuilderBase() 79 builder.addSaProposal(saProposal); in createIkeParamsBuilderBase()
|
D | IkeSessionPskTest.java | 213 final IkeSaProposal saProposal = in testIkeSessionSetupAndChildSessionSetupWithAesCmac() local 222 createIkeParamsBuilderBase(mRemoteAddress, saProposal).build(); in testIkeSessionSetupAndChildSessionSetupWithAesCmac()
|
D | IkeSessionMobikeTest.java | 215 final IkeSaProposal saProposal = in setupAndVerifyIkeSessionWithMobility() local 224 createIkeParamsBuilderBase(remoteAddress, saProposal); in setupAndVerifyIkeSessionWithMobility()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayload.java | 146 IkeSaProposal saProposal, in IkeSaPayload() argument 156 saProposal, in IkeSaPayload() 214 ChildSaProposal saProposal, in IkeSaPayload() argument 222 proposalNumber /* number */, saProposal, ipSecSpiGenerator, localAddress)); in IkeSaPayload() 282 IkeSaProposal saProposal, in createRekeyIkeSaResponsePayload() argument 290 saProposal, in createRekeyIkeSaResponsePayload() 324 ChildSaProposal saProposal, in createChildSaResponsePayload() argument 328 return new IkeSaPayload(respProposalNumber, saProposal, ipSecSpiGenerator, localAddress); in createChildSaResponsePayload() 715 IkeSaProposal saProposal = in readFrom() local 722 return new IkeProposal(number, spiSize, spi, saProposal, hasUnrecognizedTransform); in readFrom() [all …]
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | ChildSaProposal.java | 256 public boolean isNegotiatedFromExceptDhGroup(SaProposal saProposal) { in isNegotiatedFromExceptDhGroup() argument 257 return getProtocolId() == saProposal.getProtocolId() in isNegotiatedFromExceptDhGroup() 259 getEncryptionTransforms(), saProposal.getEncryptionTransforms()) in isNegotiatedFromExceptDhGroup() 261 getIntegrityTransforms(), saProposal.getIntegrityTransforms()) in isNegotiatedFromExceptDhGroup() 262 && isTransformSelectedFrom(mEsns, ((ChildSaProposal) saProposal).mEsns); in isNegotiatedFromExceptDhGroup()
|
D | IkeSessionParams.java | 2410 for (IkeSaProposal saProposal : getIkeSaProposals()) { in dump() 2416 + saProposal.getEncryptionAlgorithms().toString()); in dump() 2420 + saProposal.getIntegrityAlgorithms().toString()); in dump() 2421 pw.println(prefix + "Dh Group algorithm: " + saProposal.getDhGroups().toString()); in dump() 2423 prefix + "Prf algorithm: " + saProposal.getPseudorandomFunctions().toString()); in dump()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachine.java | 1555 ChildSaProposal saProposal = mSaProposal; in enterState() local 1557 saProposal = addDhGroupsFromChildSessionParamsIfAbsent(); in enterState() 1566 saProposal, in enterState() 1786 for (SaProposal saProposal : mChildSessionParams.getSaProposals()) { in addDhGroupsFromChildSessionParamsIfAbsent() 1787 if (!mSaProposal.isNegotiatedFromExceptDhGroup(saProposal)) continue; in addDhGroupsFromChildSessionParamsIfAbsent() 1788 dhGroupSet.addAll(Arrays.asList(saProposal.getDhGroupTransforms())); in addDhGroupsFromChildSessionParamsIfAbsent() 1849 ChildSaProposal saProposal = mSaProposal; in handleCreateChildRequest() local 1851 saProposal = in handleCreateChildRequest() 1860 byte respProposalNumber = reqSaPayload.getNegotiatedProposalNumber(saProposal); in handleCreateChildRequest() 1868 saProposal, in handleCreateChildRequest() [all …]
|
D | IkeSessionStateMachine.java | 3641 .saProposal; in validateIkeInitResp() 4982 newCipher = IkeCipher.create(respProposal.saProposal.getEncryptionTransforms()[0]); in validateAndBuildIkeSa() 4986 respProposal.saProposal.getIntegrityTransforms()[0]); in validateAndBuildIkeSa() 4988 newPrf = IkeMacPrf.create(respProposal.saProposal.getPrfTransforms()[0]); in validateAndBuildIkeSa() 6159 IkeSaProposal saProposal, in getRekeyIkeSaResponsePayloads() argument 6168 int selectedDhGroup = saProposal.getDhGroupTransforms()[0].id; in getRekeyIkeSaResponsePayloads() 6173 respProposalNumber, saProposal, ikeSpiGenerator, localAddr), in getRekeyIkeSaResponsePayloads()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 1083 assertEquals(mChildSessionStateMachine.mSaProposal, proposal.saProposal); in verifyOutboundRekeySaPayload() 2184 ChildSaProposal saProposal = buildSaProposalWithDhGroup(SaProposal.DH_GROUP_2048_BIT_MODP); in testFirstChildLocalRekey() local 2187 .addSaProposal(saProposal) in testFirstChildLocalRekey() 2321 ChildSaProposal saProposal = buildSaProposalWithDhGroup(SaProposal.DH_GROUP_2048_BIT_MODP); in testRemoteRekeyWithUserSpecifiedKePayload() local 2323 mChildSessionStateMachine = buildAndStartStateMachineWithProposal(saProposal); in testRemoteRekeyWithUserSpecifiedKePayload() 2328 verifyRemoteRekeyWithKePayload(saProposal, SaProposal.DH_GROUP_2048_BIT_MODP); in testRemoteRekeyWithUserSpecifiedKePayload() 2342 ChildSaProposal saProposal = buildSaProposalWithDhGroup(IKE_DH_GROUP); in testRemoteRekeyWithIkeNegotiatedKePayload() local 2343 verifyRemoteRekeyWithKePayload(saProposal, IKE_DH_GROUP); in testRemoteRekeyWithIkeNegotiatedKePayload() 2393 ChildSaProposal saProposal = buildSaProposalWithDhGroup(SaProposal.DH_GROUP_2048_BIT_MODP); in testRejectRemoteRekeyWithoutDhGroupInProposal() local 2394 mChildSessionStateMachine = buildAndStartStateMachineWithProposal(saProposal); in testRejectRemoteRekeyWithoutDhGroupInProposal() [all …]
|
D | IkeSessionStateMachineTest.java | 1123 ChildSaProposal saProposal = in buildChildSessionParams() local 1131 .addSaProposal(saProposal) in buildChildSessionParams() 4025 assertEquals(mIkeSessionStateMachine.mSaProposal, proposal.saProposal); in testRekeyIkeLocalCreateSendsRequest()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayloadTest.java | 716 assertEquals(mIkeSaProposalOne, proposal.saProposal); 733 assertEquals(mTwoIkeSaProposalsArray[i], proposal.saProposal); 755 assertEquals(mTwoChildSaProposalsArray[i], proposal.saProposal); 966 DhGroupTransform unsupportedDh = proposal.saProposal.getDhGroupTransforms()[0];
|