/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | SaProposalTest.java | 40 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 53 private final EncryptionTransform mEncryption3DesTransform; 54 private final EncryptionTransform mEncryptionAesCbcTransform; 55 private final EncryptionTransform mEncryptionAesGcm8Transform; 56 private final EncryptionTransform mEncryptionAesGcm12Transform; 67 new EncryptionTransform(SaProposal.ENCRYPTION_ALGORITHM_3DES, KEY_LEN_UNUSED); in SaProposalTest() 69 new EncryptionTransform( in SaProposalTest() 72 new EncryptionTransform( in SaProposalTest() 75 new EncryptionTransform( in SaProposalTest() 100 new EncryptionTransform[] {mEncryption3DesTransform}, in testBuildIkeSaProposalWithNormalModeCipher() [all …]
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | SaProposal.java | 27 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.EncryptionTransform; 259 private final EncryptionTransform[] mEncryptionAlgorithms; 266 EncryptionTransform[] encryptionAlgos, in SaProposal() 309 EncryptionTransform::toPersistableBundle); in toPersistableBundle() 414 for (EncryptionTransform transform : mEncryptionAlgorithms) { in getEncryptionAlgorithms() 449 public EncryptionTransform[] getEncryptionTransforms() { in getEncryptionTransforms() 494 protected final LinkedHashSet<EncryptionTransform> mProposedEncryptAlgos = 525 protected EncryptionTransform[] buildEncryptAlgosOrThrow() { in buildEncryptAlgosOrThrow() 532 new EncryptionTransform[mProposedEncryptAlgos.size()]); in buildEncryptAlgosOrThrow() 539 EncryptionTransform encryptionTransform = new EncryptionTransform(algorithm, keyLength); in validateAndAddEncryptAlgo()
|
D | IkeSaProposal.java | 26 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.EncryptionTransform; 69 EncryptionTransform[] encryptionAlgos, in IkeSaProposal() 92 List<EncryptionTransform> encryptList = in fromPersistableBundle() 94 encryptionBundle, EncryptionTransform::fromPersistableBundle); in fromPersistableBundle() 95 for (EncryptionTransform t : encryptList) { in fromPersistableBundle() 353 EncryptionTransform[] encryptionTransforms = buildEncryptAlgosOrThrow(); in build()
|
D | ChildSaProposal.java | 31 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.EncryptionTransform; 91 EncryptionTransform[] encryptionAlgos, in ChildSaProposal() 115 List<EncryptionTransform> encryptList = in fromPersistableBundle() 117 encryptionBundle, EncryptionTransform::fromPersistableBundle); in fromPersistableBundle() 118 for (EncryptionTransform t : encryptList) { in fromPersistableBundle() 372 EncryptionTransform[] encryptionTransforms = buildEncryptAlgosOrThrow(); in build()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayload.java | 684 List<EncryptionTransform> encryptAlgoList = new LinkedList<>(); in readFrom() 695 encryptAlgoList.add((EncryptionTransform) transform); in readFrom() 718 new EncryptionTransform[encryptAlgoList.size()]), in readFrom() 727 new EncryptionTransform[encryptAlgoList.size()]), in readFrom() 1097 return new EncryptionTransform(id, attributeList); in readFrom() 1191 public static final class EncryptionTransform extends Transform { class in IkeSaPayload 1208 public EncryptionTransform(@EncryptionAlgorithm int id) { in EncryptionTransform() method in IkeSaPayload.EncryptionTransform 1219 public EncryptionTransform(@EncryptionAlgorithm int id, int specifiedKeyLength) { in EncryptionTransform() method in IkeSaPayload.EncryptionTransform 1231 public static EncryptionTransform fromPersistableBundle(@NonNull PersistableBundle in) { in fromPersistableBundle() 1233 return new EncryptionTransform(in.getInt(ID_KEY), in.getInt(SPECIFIED_KEY_LEN_KEY)); in fromPersistableBundle() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayloadTest.java | 62 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 157 private EncryptionTransform mEncrAesCbc128Transform; 158 private EncryptionTransform mEncrAesGcm8Key128Transform; 194 new EncryptionTransform( in setUp() 197 new EncryptionTransform( in setUp() 306 assertTrue(transform instanceof EncryptionTransform); in testDecodeEncryptionTransform() 343 new EncryptionTransform(-1); in testConstructEncryptionTransformWithUnsupportedId() 352 new EncryptionTransform(SaProposal.ENCRYPTION_ALGORITHM_3DES, 129); in testConstructEncryptionTransformWithInvalidKeyLength() 605 EncryptionTransform mEncrAesGcm8Key128TransformOther = in testTransformEquals() 606 new EncryptionTransform( in testTransformEquals() [all …]
|
D | IkeEncryptedPayloadBodyTest.java | 29 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 220 new EncryptionTransform(SaProposal.ENCRYPTION_ALGORITHM_3DES)); in setUp() 225 new EncryptionTransform( in setUp() 238 new EncryptionTransform( in setUp()
|
D | IkeSkPayloadTest.java | 26 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 76 new EncryptionTransform( in setUp()
|
D | IkeSkfPayloadTest.java | 33 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 100 new EncryptionTransform( in setUp()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipherTest.java | 29 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 87 new EncryptionTransform( in setUp() 101 new EncryptionTransform( in setUp()
|
D | IkeNormalModeCipherTest.java | 30 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 91 new EncryptionTransform( in setUp() 104 new EncryptionTransform( in setUp()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCipher.java | 24 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.EncryptionTransform; 111 public static IkeCipher create(EncryptionTransform encryptionTransform) { in create()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | SaRecordTest.java | 54 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 165 new EncryptionTransform( in setUp()
|
D | ChildSessionStateMachineTest.java | 126 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 234 private EncryptionTransform mChildEncryptionTransform; 256 new EncryptionTransform( in ChildSessionStateMachineTest() 499 new EncryptionTransform[] {mChildEncryptionTransform}, in verifyInitCreateChildResp()
|
D | IkeSessionStateMachineTest.java | 204 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.EncryptionTransform; 426 private EncryptionTransform mIkeEncryptionTransform; 812 new EncryptionTransform( in setUp() 2046 new EncryptionTransform[] {mIkeEncryptionTransform}, in verifyIkeSaNegotiationResult()
|