Home
last modified time | relevance | path

Searched refs:PrfTransform (Results 1 – 13 of 13) sorted by relevance

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSaProposal.java28 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
53 private final PrfTransform[] mPseudorandomFunctions;
70 PrfTransform[] prfs, in IkeSaProposal()
191 public PrfTransform[] getPrfTransforms() { in getPrfTransforms()
235 private final Set<PrfTransform> mProposedPrfs = new ArraySet<>();
293 mProposedPrfs.add(new PrfTransform(algorithm)); in addPseudorandomFunction()
338 private PrfTransform[] buildPrfsOrThrow() { in buildPrfsOrThrow()
343 return mProposedPrfs.toArray(new PrfTransform[mProposedPrfs.size()]); in buildPrfsOrThrow()
354 PrfTransform[] prfTransforms = buildPrfsOrThrow(); in build()
DSaProposal.java29 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
496 protected final LinkedHashSet<PrfTransform> mProposedPrfs = new LinkedHashSet<>();
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java29 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
177 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
179 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256)); in setUp()
181 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC)); in setUp()
186 new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_AES128_CMAC)); in setUp()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java42 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
59 private final PrfTransform mPrfAes128XCbcTransform;
80 mPrfAes128XCbcTransform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC); in SaProposalTest()
106 new PrfTransform[] {mPrfAes128XCbcTransform}, proposal.getPrfTransforms()); in testBuildIkeSaProposalWithNormalModeCipher()
127 new PrfTransform[] {mPrfAes128XCbcTransform}, proposal.getPrfTransforms()); in testBuildIkeSaProposalWithCombinedModeCipher()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java685 List<PrfTransform> prfList = new LinkedList<>(); in readFrom()
698 prfList.add((PrfTransform) transform); in readFrom()
719 prfList.toArray(new PrfTransform[prfList.size()]), in readFrom()
1099 return new PrfTransform(id, attributeList); in readFrom()
1408 public static final class PrfTransform extends Transform { class in IkeSaPayload
1414 public PrfTransform(@PseudorandomFunction int id) { in PrfTransform() method in IkeSaPayload.PrfTransform
1425 protected PrfTransform(int id, List<Attribute> attributeList) in PrfTransform() method in IkeSaPayload.PrfTransform
1437 if (!(o instanceof PrfTransform)) return false; in equals()
1439 PrfTransform other = (PrfTransform) o; in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthPayloadTest.java29 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
92 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeAuthPskPayloadTest.java28 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
84 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeAuthDigitalSignPayloadTest.java40 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
123 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeSaPayloadTest.java67 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
160 private PrfTransform mPrfHmacSha1Transform;
201 mPrfHmacSha1Transform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1); in setUp()
368 assertTrue(transform instanceof PrfTransform); in testDecodePrfTransform()
387 new PrfTransform(-1); in testConstructPrfTransformWithUnsupportedId()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrf.java25 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
64 public static IkeMacPrf create(PrfTransform prfTransform) { in create()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DSaRecordTest.java56 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
159 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DChildSessionStateMachineTest.java128 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
269 mIkePrf = IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setup()
DIkeSessionStateMachineTest.java206 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.PrfTransform;
428 private PrfTransform mIkePrfTransform;
816 mIkePrfTransform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1); in setUp()
2051 assertEquals(new PrfTransform[] {mIkePrfTransform}, negotiatedProposal.getPrfTransforms()); in verifyIkeSaNegotiationResult()
2161 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in mockIkeInitAndTransitionToIkeAuth()