Home
last modified time | relevance | path

Searched refs:SaProposal (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java19 import static android.net.ipsec.ike.SaProposal.DH_GROUP_1024_BIT_MODP;
20 import static android.net.ipsec.ike.SaProposal.DH_GROUP_2048_BIT_MODP;
21 import static android.net.ipsec.ike.SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12;
22 import static android.net.ipsec.ike.SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8;
23 import static android.net.ipsec.ike.SaProposal.INTEGRITY_ALGORITHM_NONE;
24 import static android.net.ipsec.ike.SaProposal.KEY_LEN_AES_128;
25 import static android.net.ipsec.ike.SaProposal.KEY_LEN_UNUSED;
26 import static android.net.ipsec.ike.SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC;
27 import static android.net.ipsec.ike.SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256;
55 new EncryptionTransform(SaProposal.ENCRYPTION_ALGORITHM_3DES, KEY_LEN_UNUSED); in SaProposalTest()
[all …]
DChildSessionParamsTest.java40 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12, in ChildSessionParamsTest()
41 SaProposal.KEY_LEN_AES_128) in ChildSessionParamsTest()
50 assertArrayEquals(new SaProposal[] {mSaProposal}, sessionParams.getSaProposalsInternal()); in testBuild()
DIkeSessionParamsTest.java114 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8, in setUp()
115 SaProposal.KEY_LEN_AES_128) in setUp()
116 .addPseudorandomFunction(SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC) in setUp()
117 .addDhGroup(SaProposal.DH_GROUP_1024_BIT_MODP) in setUp()
140 new SaProposal[] {mIkeSaProposal}, sessionParams.getSaProposalsInternal()); in verifyIkeSessionParamsCommon()
DTunnelModeChildSessionParamsTest.java77 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12, in setup()
78 SaProposal.KEY_LEN_AES_128) in setup()
83 assertArrayEquals(new SaProposal[] {mSaProposal}, childParams.getSaProposalsInternal()); in verifyCommon()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacIntegrity.java20 import android.net.ipsec.ike.SaProposal;
43 @SaProposal.IntegrityAlgorithm int algorithmId, in IkeMacIntegrity()
67 case SaProposal.INTEGRITY_ALGORITHM_NONE: in create()
69 case SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96: in create()
74 case SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96: in create()
80 case SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128: in create()
85 case SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_384_192: in create()
90 case SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_512_256: in create()
154 case SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96: in buildIpSecAlgorithmWithKey()
156 case SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96: in buildIpSecAlgorithmWithKey()
[all …]
DIkeMacPrf.java19 import android.net.ipsec.ike.SaProposal;
48 @SaProposal.PseudorandomFunction int algorithmId, in IkeMacPrf()
69 case SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1: in create()
73 case SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC: in create()
78 case SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256: in create()
82 case SaProposal.PSEUDORANDOM_FUNCTION_SHA2_384: in create()
86 case SaProposal.PSEUDORANDOM_FUNCTION_SHA2_512: in create()
107 if (getAlgorithmId() == SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC) { in generateSKeySeed()
DIkeCombinedModeCipher.java20 import android.net.ipsec.ike.SaProposal;
58 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8: in IkeCombinedModeCipher()
62 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12: in IkeCombinedModeCipher()
66 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16: in IkeCombinedModeCipher()
123 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8: in getParamSpec()
125 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12: in getParamSpec()
127 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16: in getParamSpec()
DIkeCipher.java20 import android.net.ipsec.ike.SaProposal;
73 case SaProposal.ENCRYPTION_ALGORITHM_3DES: in create()
76 case SaProposal.ENCRYPTION_ALGORITHM_AES_CBC: in create()
82 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8: in create()
84 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12: in create()
86 case SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16: in create()
DIkeNormalModeCipher.java20 import android.net.ipsec.ike.SaProposal;
112 case SaProposal.ENCRYPTION_ALGORITHM_3DES: in buildIpSecAlgorithmWithKey()
115 case SaProposal.ENCRYPTION_ALGORITHM_AES_CBC: in buildIpSecAlgorithmWithKey()
DIkeMac.java19 import static android.net.ipsec.ike.SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96;
20 import static android.net.ipsec.ike.SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC;
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java42 import android.net.ipsec.ike.SaProposal;
180 mAttributeKeyLength128 = new KeyLengthAttribute(SaProposal.KEY_LEN_AES_128); in setUp()
186 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, SaProposal.KEY_LEN_AES_128); in setUp()
189 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8, SaProposal.KEY_LEN_AES_128); in setUp()
191 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in setUp()
192 mPrfHmacSha1Transform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1); in setUp()
193 mDhGroup1024Transform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in setUp()
206 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, SaProposal.KEY_LEN_AES_128) in setUp()
207 .addIntegrityAlgorithm(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96) in setUp()
208 .addDhGroup(SaProposal.DH_GROUP_1024_BIT_MODP) in setUp()
[all …]
DIkeEncryptedPayloadBodyTest.java22 import android.net.ipsec.ike.SaProposal;
220 new EncryptionTransform(SaProposal.ENCRYPTION_ALGORITHM_3DES)); in setUp()
226 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, in setUp()
227 SaProposal.KEY_LEN_AES_128)); in setUp()
232 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
239 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16, in setUp()
240 SaProposal.KEY_LEN_AES_256)); in setUp()
DIkeSkPayloadTest.java21 import android.net.ipsec.ike.SaProposal;
77 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, in setUp()
78 SaProposal.KEY_LEN_AES_128)); in setUp()
82 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
DIkeSkfPayloadTest.java26 import android.net.ipsec.ike.SaProposal;
91 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128))); in setUp()
101 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, in setUp()
102 SaProposal.KEY_LEN_AES_128))); in setUp()
DIkeKePayloadTest.java27 import android.net.ipsec.ike.SaProposal;
59 private static final int EXPECTED_DH_GROUP = SaProposal.DH_GROUP_1024_BIT_MODP;
161 new IkeKePayload(SaProposal.DH_GROUP_1024_BIT_MODP, createMockRandomFactory()); in testGetIkeKePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java20 import android.net.ipsec.ike.SaProposal;
117 case SaProposal.DH_GROUP_1024_BIT_MODP: in IkeKePayload()
120 case SaProposal.DH_GROUP_2048_BIT_MODP: in IkeKePayload()
123 case SaProposal.DH_GROUP_3072_BIT_MODP: in IkeKePayload()
126 case SaProposal.DH_GROUP_4096_BIT_MODP: in IkeKePayload()
154 public IkeKePayload(@SaProposal.DhGroup int dh, RandomnessFactory randomnessFactory) { in IkeKePayload()
163 case SaProposal.DH_GROUP_1024_BIT_MODP: in IkeKePayload()
169 case SaProposal.DH_GROUP_2048_BIT_MODP: in IkeKePayload()
175 case SaProposal.DH_GROUP_3072_BIT_MODP: in IkeKePayload()
181 case SaProposal.DH_GROUP_4096_BIT_MODP: in IkeKePayload()
DIkeSaPayload.java20 import static android.net.ipsec.ike.SaProposal.DhGroup;
21 import static android.net.ipsec.ike.SaProposal.EncryptionAlgorithm;
22 import static android.net.ipsec.ike.SaProposal.IntegrityAlgorithm;
23 import static android.net.ipsec.ike.SaProposal.PseudorandomFunction;
32 import android.net.ipsec.ike.SaProposal;
336 public byte getNegotiatedProposalNumber(SaProposal respProposal) in getNegotiatedProposalNumber()
753 abstract SaProposal getSaProposal(); in getSaProposal()
832 public SaProposal getSaProposal() { in getSaProposal()
919 public SaProposal getSaProposal() { in getSaProposal()
1208 return SaProposal.isSupportedEncryptionAlgorithm(id); in isSupportedTransformId()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSaProposal.java45 public final class ChildSaProposal extends SaProposal {
105 public boolean isNegotiatedFrom(SaProposal reqProposal) { in isNegotiatedFrom()
111 public boolean isNegotiatedFromExceptDhGroup(SaProposal saProposal) { in isNegotiatedFromExceptDhGroup()
133 public static final class Builder extends SaProposal.Builder {
DIkeSaProposal.java48 public final class IkeSaProposal extends SaProposal {
107 public boolean isNegotiatedFrom(SaProposal reqProposal) { in isNegotiatedFrom()
118 public static final class Builder extends SaProposal.Builder {
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java82 import android.net.ipsec.ike.SaProposal;
231 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, SaProposal.KEY_LEN_AES_128); in ChildSessionStateMachineTest()
233 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in ChildSessionStateMachineTest()
235 mChildDhGroupTransform = new DhGroupTransform(SaProposal.DH_GROUP_1024_BIT_MODP); in ChildSessionStateMachineTest()
243 mIkePrf = IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setup()
287 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, SaProposal.KEY_LEN_AES_128) in buildSaProposal()
288 .addIntegrityAlgorithm(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96) in buildSaProposal()
1726 new IkeKePayload(SaProposal.DH_GROUP_1024_BIT_MODP, createMockRandomFactory())); in testValidateExpectKeExistCase()
1774 new IkeKePayload(SaProposal.DH_GROUP_2048_BIT_MODP, createMockRandomFactory())); in testThrowWhenKeHasMismatchedDhGroup()
1793 DhGroupTransform noneGroup = new DhGroupTransform(SaProposal.DH_GROUP_NONE); in testThrowForUnexpectedKe()
[all …]
DSaRecordTest.java39 import android.net.ipsec.ike.SaProposal;
157 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
160 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
164 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, in setUp()
165 SaProposal.KEY_LEN_AES_128)); in setUp()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeNormalModeCipherTest.java26 import android.net.ipsec.ike.SaProposal;
79 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, in setUp()
80 SaProposal.KEY_LEN_AES_128)); in setUp()
DIkeCombinedModeCipherTest.java26 import android.net.ipsec.ike.SaProposal;
69 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16, in setUp()
70 SaProposal.KEY_LEN_AES_256)); in setUp()
DIkeMacIntegrityTest.java25 import android.net.ipsec.ike.SaProposal;
77 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
83 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96)); in setUp()
DIkeMacPrfTest.java24 import android.net.ipsec.ike.SaProposal;
155 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
157 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256)); in setUp()
159 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC)); in setUp()

12