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.java27 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
49 private final PrfTransform[] mPseudorandomFunctions;
66 PrfTransform[] prfs, in IkeSaProposal()
92 public PrfTransform[] getPrfTransforms() { in getPrfTransforms()
122 private final Set<PrfTransform> mProposedPrfs = new ArraySet<>();
171 mProposedPrfs.add(new PrfTransform(algorithm)); in addPseudorandomFunction()
216 private PrfTransform[] buildPrfsOrThrow() { in buildPrfsOrThrow()
221 return mProposedPrfs.toArray(new PrfTransform[mProposedPrfs.size()]); in buildPrfsOrThrow()
232 PrfTransform[] prfTransforms = buildPrfsOrThrow(); in build()
DSaProposal.java29 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
402 protected final LinkedHashSet<PrfTransform> mProposedPrfs = new LinkedHashSet<>();
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java39 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
50 private final PrfTransform mPrfAes128XCbcTransform;
65 mPrfAes128XCbcTransform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC); in SaProposalTest()
88 new PrfTransform[] {mPrfAes128XCbcTransform}, proposal.getPrfTransforms()); in testBuildIkeSaProposalWithNormalModeCipher()
109 new PrfTransform[] {mPrfAes128XCbcTransform}, proposal.getPrfTransforms()); in testBuildIkeSaProposalWithCombinedModeCipher()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java617 List<PrfTransform> prfList = new LinkedList<>(); in readFrom()
630 prfList.add((PrfTransform) transform); in readFrom()
651 prfList.toArray(new PrfTransform[prfList.size()]), in readFrom()
1031 return new PrfTransform(id, attributeList); in readFrom()
1317 public static final class PrfTransform extends Transform { class in IkeSaPayload
1323 public PrfTransform(@PseudorandomFunction int id) { in PrfTransform() method in IkeSaPayload.PrfTransform
1334 protected PrfTransform(int id, List<Attribute> attributeList) in PrfTransform() method in IkeSaPayload.PrfTransform
1346 if (!(o instanceof PrfTransform)) return false; in equals()
1348 PrfTransform other = (PrfTransform) o; in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java27 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
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()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthPayloadTest.java29 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
92 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeAuthPskPayloadTest.java28 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
84 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeAuthDigitalSignPayloadTest.java31 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
92 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeSaPayloadTest.java58 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
151 private PrfTransform mPrfHmacSha1Transform;
192 mPrfHmacSha1Transform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1); in setUp()
359 assertTrue(transform instanceof PrfTransform); in testDecodePrfTransform()
378 new PrfTransform(-1); in testConstructPrfTransformWithUnsupportedId()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrf.java22 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
61 public static IkeMacPrf create(PrfTransform prfTransform) { in create()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DSaRecordTest.java55 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
157 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setUp()
DIkeSessionStateMachineTest.java156 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
324 private PrfTransform mIkePrfTransform;
713 mIkePrfTransform = new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1); in setUp()
1422 assertEquals(new PrfTransform[] {mIkePrfTransform}, negotiatedProposal.getPrfTransforms()); in disableTestCreateIkeLocalIkeInit()
1501 IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in mockIkeInitAndTransitionToIkeAuth()
DChildSessionStateMachineTest.java118 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.PrfTransform;
243 mIkePrf = IkeMacPrf.create(new PrfTransform(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1)); in setup()