Home
last modified time | relevance | path

Searched refs:EapData (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapDataTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
42 new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testEapDataConstructor()
48 new EapData(EAP_TYPE_SIM, null); in testEapDataConstructorNullEapData()
57 new EapData(UNSUPPORTED_EAP_TYPE, EAP_TYPE_DATA); in testEapDataConstructorUnsupportedType()
65 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testGetLength()
71 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testEquals()
72 EapData eapDataCopy = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testEquals()
75 EapData eapDataDifferent = new EapData(EAP_TYPE_SIM, new byte[0]); in testEquals()
81 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testHashCode()
82 EapData eapDataCopy = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testHashCode()
[all …]
DEapMessageTest.java20 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
21 import static com.android.internal.net.eap.message.EapData.EAP_NAK;
22 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
75 EapData expectedEapData = new EapData(EAP_TYPE_SIM, in testDecode()
145 EapData nakData = new EapData(EAP_NAK, new byte[] {EAP_TYPE_SIM}); in testEncode()
189 EapData eapData = new EapData(EAP_IDENTITY, new byte[0]); in testDecodewithExtraBytes()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaChallengeStateTest.java20 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
21 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
64 import com.android.internal.net.eap.message.EapData;
125 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType()
166 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtRand()
186 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtAutn()
206 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtMac()
266 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIccAuthenticationNullResponse()
300 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIccAuthenticationInvalidTag()
334 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIccAuthenticationSynchronizeTag()
[all …]
DEapAkaIdentityStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
39 import com.android.internal.net.eap.message.EapData;
67 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest()
86 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessWithoutIdentityRequestAttributes()
102 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMultipleIdentityRequestAttributes()
121 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessImsiUnavailable()
144 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapMsChapV2ValidateAuthenticatorStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
51 import com.android.internal.net.eap.message.EapData;
82 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessSuccessRequest()
104 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidSuccessRequest()
125 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessFailureRequest()
153 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, new byte[0]); in testProcessEmptyTypeData()
167 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidPacket()
DEapAkaPrimeChallengeStateTest.java22 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
50 import com.android.internal.net.eap.message.EapData;
114 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapIdentity()
135 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapAkaPrimeIdentity()
167 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdf()
189 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdfInput()
210 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessUnsupportedKdf()
233 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectNetworkName()
DEapSimStateTest.java22 import static com.android.internal.net.eap.message.EapData.EAP_NOTIFICATION;
23 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
46 import com.android.internal.net.eap.message.EapData;
99 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification()
114 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessEapSimNotification()
134 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java22 import static com.android.internal.net.eap.message.EapData.EAP_NOTIFICATION;
23 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
46 import com.android.internal.net.eap.message.EapData;
98 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification()
113 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessEapAkaNotification()
133 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult()
DEapSimCreatedStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
20 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
37 import com.android.internal.net.eap.message.EapData;
85 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testTransitionToStartState()
104 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType()
DEapAkaPrimeStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_NOTIFICATION;
20 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
41 import com.android.internal.net.eap.message.EapData;
56 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification()
70 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult()
DEapTtlsCreatedStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_TTLS;
31 import com.android.internal.net.eap.message.EapData;
43 EapData eapData = new EapData(EAP_TYPE_TTLS, DUMMY_EAP_TYPE_DATA); in testStartRequest()
59 EapData eapData = new EapData(EAP_TYPE_TTLS, DUMMY_EAP_TYPE_DATA); in testUnexpectedRequest()
DEapAkaPrimeCreatedStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
33 import com.android.internal.net.eap.message.EapData;
47 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState()
67 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapMsChapV2CreatedStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
35 import com.android.internal.net.eap.message.EapData;
46 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallengeRequest()
64 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData()
DEapAkaPrimeIdentityStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
36 import com.android.internal.net.eap.message.EapData;
60 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest()
79 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
39 import com.android.internal.net.eap.message.EapData;
54 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState()
74 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapMsChapV2ChallengeStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
43 import com.android.internal.net.eap.message.EapData;
63 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallenge()
92 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData()
DEapSimStartStateTest.java19 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
20 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
55 import com.android.internal.net.eap.message.EapData;
119 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType()
189 new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA)); in testAddIdentityAttributeToResponseImsiUnavailable()
219 EAP_CODE_REQUEST, ID_INT, new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequest()
DEapAkaPrimeMethodStateMachineTest.java20 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
32 import com.android.internal.net.eap.message.EapData;
67 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, new byte[0]); in testIsValidMacUsesHmacSha256()
DEapSimChallengeStateTest.java20 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
21 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
67 import com.android.internal.net.eap.message.EapData;
128 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType()
329 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessUiccAuthenticationNullResponse()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java20 import static com.android.internal.net.eap.message.EapData.EAP_IDENTITY;
21 import static com.android.internal.net.eap.message.EapData.EAP_NAK;
22 import static com.android.internal.net.eap.message.EapData.EAP_NOTIFICATION;
23 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
24 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
25 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
26 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
27 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_STRING;
28 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_TTLS;
55 import com.android.internal.net.eap.message.EapData;
[all …]
DEapSimAkaMethodStateMachine.java38 import com.android.internal.net.eap.message.EapData;
143 EapData eapData = new EapData(eapMethodType, encodedTypeData); in buildClientErrorResponse()
159 EapData eapData = new EapData(eapType, eapSimTypeData.encode()); in buildResponseMessage()
251 EapData eapData = new EapData(getEapMethod(), typeDataWithEmptyMac); in getMac()
285 EapData eapData = new EapData(getEapMethod(), eapSimAkaTypeData.encode()); in buildResponseMessageWithMac()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java20 import static com.android.internal.net.eap.message.EapData.EAP_NAK;
21 import static com.android.internal.net.eap.message.EapData.NOTIFICATION_DATA;
103 public final EapData eapData;
105 public EapMessage(@EapCode int eapCode, int eapIdentifier, @Nullable EapData eapData) in EapMessage()
127 EapData eapData; in decode()
135 if (!EapData.isSupportedEapType(eapType)) { in decode()
148 eapData = new EapData(eapType, eapDataBytes); in decode()
223 EapData nakData = new EapData(EAP_NAK, buffer.array()); in getNakResponse()
DEapData.java49 public class EapData { class
114 public static final EapData NOTIFICATION_DATA = new EapData(EAP_NOTIFICATION, new byte[0]);
124 public EapData(@EapType int eapType, @NonNull byte[] eapTypeData) { in EapData() method in EapData
152 if (o == null || !(o instanceof EapData)) { in equals()
155 EapData eapData = (EapData) o; in equals()
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java19 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
20 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
21 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
22 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
23 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_TTLS;
31 import com.android.internal.net.eap.message.EapData.EapMethod;
/packages/modules/IPsec/tests/iketests/src/java/android/net/eap/
DEapSessionConfigTest.java22 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA;
23 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_AKA_PRIME;
24 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_MSCHAP_V2;
25 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_SIM;
26 import static com.android.internal.net.eap.message.EapData.EAP_TYPE_TTLS;

12