/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | ChildSessionParamsTest.java | 38 private final ChildSaProposal mSaProposal; field in ChildSessionParamsTest 43 mSaProposal = in ChildSessionParamsTest() 66 new TunnelModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuild() 68 assertArrayEquals(new SaProposal[] {mSaProposal}, sessionParams.getSaProposalsInternal()); in testBuild() 81 new TunnelModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testInternalGetterReturnsDifferentInstances() 102 .addSaProposal(mSaProposal) in testPersistableBundleEncodeDecodeIsLosslessTunnelMode() 111 new TransportModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testPersistableBundleEncodeDecodeIsLosslessTransportMode() 119 .addSaProposal(mSaProposal) in testBuildTrafficSelectors() 124 assertEquals(Arrays.asList(mSaProposal), sessionParams.getSaProposals()); in testBuildTrafficSelectors() 159 .addSaProposal(mSaProposal) in testConstructTransportModeChildParamsCopy()
|
D | TunnelModeChildSessionParamsTest.java | 70 private ChildSaProposal mSaProposal; field in TunnelModeChildSessionParamsTest 74 mSaProposal = in setup() 83 assertArrayEquals(new SaProposal[] {mSaProposal}, childParams.getSaProposalsInternal()); in verifyCommon() 109 new TunnelModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuildChildSessionParamsWithoutConfigReq() 125 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithLifetime() 140 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithAddressReq() 162 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithDnsServerReq() 182 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithDhcpServerReq() 201 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithDhcp6SeverReq() 216 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithInvalidDhcpReq() [all …]
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | ChildSessionParamsTest.java | 57 private final ChildSaProposal mSaProposal = field in ChildSessionParamsTest 82 assertEquals(Arrays.asList(mSaProposal), childParams.getSaProposals()); in verifyChildParamsWithDefaultValues() 97 assertEquals(Arrays.asList(mSaProposal), childParams.getSaProposals()); in verifyChildParamsWithCustomizedValues() 113 new TransportModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuildTransportModeParamsWithDefaultValues() 121 new TunnelModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuildTunnelModeParamsWithDefaultValues() 130 new TransportModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuildTransportModeParamsWithTransportModeParams() 140 new TunnelModeChildSessionParams.Builder().addSaProposal(mSaProposal).build(); in testBuildTunnelModeParamsWithTunnelModeParams() 151 .addSaProposal(mSaProposal) in testBuildTransportModeParamsWithCustomizedValues() 166 .addSaProposal(mSaProposal) in testBuildTunnelModeParamsWithCustomizedValues() 181 .addSaProposal(mSaProposal) in testBuildChildSessionParamsWithConfigReq()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachine.java | 205 @VisibleForTesting ChildSaProposal mSaProposal; field in ChildSessionStateMachine 901 List<Integer> integrityAlgorithms = mSaProposal.getIntegrityAlgorithms(); in validateAndBuildChild() 902 List<Integer> dhGroups = mSaProposal.getDhGroups(); in validateAndBuildChild() 908 mSaProposal.getEncryptionTransforms()[0].id, in validateAndBuildChild() 909 mSaProposal.getEncryptionTransforms()[0].getSpecifiedKeyLength(), in validateAndBuildChild() 956 mSaProposal = createChildResult.negotiatedProposal; in setUpNegotiatedResult() 957 mChildCipher = IkeCipher.create(mSaProposal.getEncryptionTransforms()[0]); in setUpNegotiatedResult() 958 if (mSaProposal.getIntegrityTransforms().length != 0 in setUpNegotiatedResult() 959 && mSaProposal.getIntegrityTransforms()[0].id in setUpNegotiatedResult() 961 mChildIntegrity = IkeMacIntegrity.create(mSaProposal.getIntegrityTransforms()[0]); in setUpNegotiatedResult() [all …]
|
D | IkeSessionStateMachine.java | 429 @VisibleForTesting IkeSaProposal mSaProposal; field in IkeSessionStateMachine 2563 reqSaPayload.getNegotiatedProposalNumber(mSaProposal); in handleRequestIkeMessage() 2568 if (reqKePayload.dhGroup != mSaProposal.getDhGroups().get(0)) { in handleRequestIkeMessage() 2569 throw new InvalidKeException(mSaProposal.getDhGroups().get(0)); in handleRequestIkeMessage() 2575 mSaProposal, in handleRequestIkeMessage() 2600 List<Integer> integrityAlgorithms = mSaProposal.getIntegrityAlgorithms(); in handleRequestIkeMessage() 2603 mSaProposal.getDhGroups().get(0), in handleRequestIkeMessage() 2604 mSaProposal.getEncryptionTransforms()[0].id, in handleRequestIkeMessage() 2605 mSaProposal.getEncryptionTransforms()[0].getSpecifiedKeyLength(), in handleRequestIkeMessage() 2609 mSaProposal.getPseudorandomFunctions().get(0), in handleRequestIkeMessage() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 496 ChildSaProposal negotiatedProposal = mChildSessionStateMachine.mSaProposal; in verifyInitCreateChildResp() 829 mChildSessionStateMachine.mSaProposal = buildSaProposal(); in setupIdleStateMachine() 1083 assertEquals(mChildSessionStateMachine.mSaProposal, proposal.saProposal); in verifyOutboundRekeySaPayload() 1723 assertEquals(0, mChildSessionStateMachine.mSaProposal.getDhGroups().size()); in testRekeyChildRemoteCreate() 2198 assertEquals(0, mChildSessionStateMachine.mSaProposal.getDhGroups().size()); in testFirstChildLocalRekey() 2315 assertEquals(expectedDh, (int) mChildSessionStateMachine.mSaProposal.getDhGroups().get(0)); in verifyRemoteRekeyWithKePayload() 2326 assertEquals(0, mChildSessionStateMachine.mSaProposal.getDhGroups().size()); in testRemoteRekeyWithUserSpecifiedKePayload() 2335 assertEquals(0, mChildSessionStateMachine.mSaProposal.getDhGroups().size()); in testRemoteRekeyWithIkeNegotiatedKePayload() 2363 assertEquals(0, mChildSessionStateMachine.mSaProposal.getDhGroups().size()); in testRemoteRekeyWithInvalidKePayload() 2397 mChildSessionStateMachine.mSaProposal = saProposal; in testRejectRemoteRekeyWithoutDhGroupInProposal() [all …]
|
D | IkeSessionStateMachineTest.java | 2042 IkeSaProposal negotiatedProposal = mIkeSessionStateMachine.mSaProposal; in verifyIkeSaNegotiationResult() 2095 mIkeSessionStateMachine.mSaProposal = buildNegotiatedSaProposal(); in setIkeInitResults() 2308 eq(mIkeSessionStateMachine.mSaProposal.getDhGroupTransforms()[0].id), in testCreateAdditionalChild() 3126 eq(mIkeSessionStateMachine.mSaProposal.getDhGroupTransforms()[0].id), in verifyAuthenticationCommonAndGetIkeMessage() 4025 assertEquals(mIkeSessionStateMachine.mSaProposal, proposal.saProposal); in testRekeyIkeLocalCreateSendsRequest() 4825 mIkeSessionStateMachine.mSaProposal = buildSaProposal(); in testIkeInitSchedulesRekey()
|