Home
last modified time | relevance | path

Searched refs:IntegrityTransform (Results 1 – 14 of 14) sorted by relevance

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java28 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.IntegrityTransform;
260 private final IntegrityTransform[] mIntegrityAlgorithms;
267 IntegrityTransform[] integrityAlgos, in SaProposal()
370 IntegrityTransform[] selected, IntegrityTransform[] selectFrom) { in isIntegrityTransformSelectedFrom()
372 selected = new IntegrityTransform[] {new IntegrityTransform(INTEGRITY_ALGORITHM_NONE)}; in isIntegrityTransformSelectedFrom()
376 new IntegrityTransform[] {new IntegrityTransform(INTEGRITY_ALGORITHM_NONE)}; in isIntegrityTransformSelectedFrom()
454 public IntegrityTransform[] getIntegrityTransforms() { in getIntegrityTransforms()
497 protected final LinkedHashSet<IntegrityTransform> mProposedIntegrityAlgos =
572 mProposedIntegrityAlgos.add(new IntegrityTransform(algorithm)); in validateAndAddIntegrityAlgo()
DIkeSaProposal.java27 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.IntegrityTransform;
71 IntegrityTransform[] integrityAlgos, in IkeSaProposal()
297 private IntegrityTransform[] buildIntegAlgosOrThrow() { in buildIntegAlgosOrThrow()
309 for (IntegrityTransform transform : mProposedIntegrityAlgos) { in buildIntegAlgosOrThrow()
319 new IntegrityTransform[mProposedIntegrityAlgos.size()]); in buildIntegAlgosOrThrow()
355 IntegrityTransform[] integrityTransforms = buildIntegAlgosOrThrow(); in build()
DChildSaProposal.java33 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.IntegrityTransform;
92 IntegrityTransform[] integrityAlgos, in ChildSaProposal()
348 private IntegrityTransform[] buildIntegAlgosOrThrow() { in buildIntegAlgosOrThrow()
352 for (IntegrityTransform transform : mProposedIntegrityAlgos) { in buildIntegAlgosOrThrow()
362 new IntegrityTransform[mProposedIntegrityAlgos.size()]); in buildIntegAlgosOrThrow()
373 IntegrityTransform[] integrityTransforms = buildIntegAlgosOrThrow(); in build()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java41 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
57 private final IntegrityTransform mIntegrityHmacSha1Transform;
58 private final IntegrityTransform mIntegrityNoneTransform;
78 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in SaProposalTest()
79 mIntegrityNoneTransform = new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_NONE); in SaProposalTest()
103 new IntegrityTransform[] {mIntegrityHmacSha1Transform}, in testBuildIkeSaProposalWithNormalModeCipher()
157 new IntegrityTransform[] {mIntegrityNoneTransform}, in testBuildChildSaProposalWithNormalCipher()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacIntegrityTest.java34 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
93 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
99 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96)); in setUp()
104 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_AES_CMAC_96)); in setUp()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java686 List<IntegrityTransform> integAlgoList = new LinkedList<>(); in readFrom()
701 integAlgoList.add((IntegrityTransform) transform); in readFrom()
720 integAlgoList.toArray(new IntegrityTransform[integAlgoList.size()]), in readFrom()
728 integAlgoList.toArray(new IntegrityTransform[integAlgoList.size()]), in readFrom()
1101 return new IntegrityTransform(id, attributeList); in readFrom()
1489 public static final class IntegrityTransform extends Transform { class in IkeSaPayload
1495 public IntegrityTransform(@IntegrityAlgorithm int id) { in IntegrityTransform() method in IkeSaPayload.IntegrityTransform
1506 protected IntegrityTransform(int id, List<Attribute> attributeList) in IntegrityTransform() method in IkeSaPayload.IntegrityTransform
1518 if (!(o instanceof IntegrityTransform)) return false; in equals()
1520 IntegrityTransform other = (IntegrityTransform) o; in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSkPayloadTest.java27 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
82 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
DIkeSaPayloadTest.java65 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
159 private IntegrityTransform mIntegHmacSha1Transform;
200 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in setUp()
403 assertTrue(transform instanceof IntegrityTransform); in testDecodeIntegrityTransform()
419 assertTrue(transform instanceof IntegrityTransform); in testDecodeIntegrityTransformWithUnrecognizedAttribute()
438 new IntegrityTransform(-1); in testConstructIntegrityTransformWithUnsupportedId()
617 IntegrityTransform mIntegHmacSha1TransformOther = in testTransformEquals()
618 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in testTransformEquals()
DIkeSkfPayloadTest.java34 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
90 new IntegrityTransform( in setUp()
DIkeEncryptedPayloadBodyTest.java30 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
232 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacIntegrity.java26 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.IntegrityTransform;
81 public static IkeMacIntegrity create(IntegrityTransform integrityTransform) { in create()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DSaRecordTest.java55 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
162 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96)); in setUp()
DChildSessionStateMachineTest.java127 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
235 private IntegrityTransform mChildIntegrityTransform;
259 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in ChildSessionStateMachineTest()
502 new IntegrityTransform[] {mChildIntegrityTransform}, in verifyInitCreateChildResp()
DIkeSessionStateMachineTest.java205 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.IntegrityTransform;
427 private IntegrityTransform mIkeIntegrityTransform;
815 new IntegrityTransform(SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96); in setUp()
2049 new IntegrityTransform[] {mIkeIntegrityTransform}, in verifyIkeSaNegotiationResult()