Home
last modified time | relevance | path

Searched refs:eapData (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java103 public final EapData eapData; field in EapMessage
105 public EapMessage(@EapCode int eapCode, int eapIdentifier, @Nullable EapData eapData) in EapMessage() argument
109 this.eapLength = EAP_HEADER_LENGTH + ((eapData == null) ? 0 : eapData.getLength()); in EapMessage()
110 this.eapData = eapData; in EapMessage()
127 EapData eapData; in decode() local
148 eapData = new EapData(eapType, eapDataBytes); in decode()
150 eapData = null; in decode()
158 int eapDataLength = (eapData == null) ? 0 : eapData.getLength(); in decode()
165 return new EapMessage(eapCode, eapIdentifier, eapData); in decode()
179 if (eapData != null) { in encode()
[all …]
DEapData.java150 EapData eapData = (EapData) o; in equals() local
151 return eapType == eapData.eapType in equals()
152 && Arrays.equals(eapTypeData, eapData.eapTypeData); in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapDataTest.java65 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testGetLength() local
66 assertEquals(EAP_TYPE_DATA.length + 1, eapData.getLength()); in testGetLength()
71 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testEquals() local
73 assertEquals(eapData, eapDataCopy); in testEquals()
76 assertNotEquals(eapData, eapDataDifferent); in testEquals()
81 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testHashCode() local
83 assertNotEquals(0, eapData.hashCode()); in testHashCode()
84 assertEquals(eapData.hashCode(), eapDataCopy.hashCode()); in testHashCode()
89 EapData eapData = new EapData(EAP_TYPE_SIM, EAP_TYPE_DATA); in testEncodeToByteBuffer() local
91 ByteBuffer b = ByteBuffer.allocate(eapData.getLength()); in testEncodeToByteBuffer()
[all …]
DEapMessageTest.java73 assertNull(result.eapData); in testDecode()
81 assertEquals(expectedEapData, result.eapData); in testDecode()
159 assertEquals(eapMessage.eapData, result.eapData); in testEncodeDecode()
189 EapData eapData = new EapData(EAP_IDENTITY, new byte[0]); in testDecodewithExtraBytes() local
194 assertEquals(eapData, result.eapData); in testDecodewithExtraBytes()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaChallengeStateTest.java125 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
126 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
166 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtRand() local
167 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtRand()
186 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtAutn() local
187 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtAutn()
206 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtMac() local
207 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtMac()
266 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIccAuthenticationNullResponse() local
267 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIccAuthenticationNullResponse()
[all …]
DEapAkaIdentityStateTest.java67 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest() local
68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest()
86 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessWithoutIdentityRequestAttributes() local
87 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessWithoutIdentityRequestAttributes()
102 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMultipleIdentityRequestAttributes() local
103 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMultipleIdentityRequestAttributes()
121 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessImsiUnavailable() local
122 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessImsiUnavailable()
144 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
145 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapMsChapV2ValidateAuthenticatorStateTest.java82 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessSuccessRequest() local
83 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessSuccessRequest()
104 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidSuccessRequest() local
105 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidSuccessRequest()
125 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessFailureRequest() local
126 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessFailureRequest()
153 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, new byte[0]); in testProcessEmptyTypeData() local
154 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEmptyTypeData()
167 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidPacket() local
168 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidPacket()
DEapAkaPrimeChallengeStateTest.java114 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapIdentity() local
115 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapIdentity()
135 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapAkaPrimeIdentity() local
136 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapAkaPrimeIdentity()
167 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdf() local
168 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdf()
189 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdfInput() local
190 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdfInput()
210 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessUnsupportedKdf() local
211 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessUnsupportedKdf()
[all …]
DEapSimStateTest.java99 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification() local
100 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessNotification()
114 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessEapSimNotification() local
115 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEapSimNotification()
134 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult() local
135 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java98 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification() local
99 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessNotification()
113 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessEapAkaNotification() local
114 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEapAkaNotification()
133 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult() local
134 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult()
DEapMsChapV2CreatedStateTest.java46 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallengeRequest() local
47 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallengeRequest()
64 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData() local
65 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData()
DEapAkaPrimeCreatedStateTest.java47 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState() local
48 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState()
67 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapAkaPrimeIdentityStateTest.java60 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest() local
61 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest()
79 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
80 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java54 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState() local
55 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState()
74 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
75 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapAkaPrimeStateTest.java56 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification() local
57 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessNotification()
70 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult() local
71 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult()
DEapMsChapV2ChallengeStateTest.java63 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallenge() local
64 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallenge()
92 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData() local
93 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData()
DEapSimCreatedStateTest.java85 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testTransitionToStartState() local
86 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionToStartState()
104 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
105 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
DEapSimChallengeStateTest.java128 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
129 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
329 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessUiccAuthenticationNullResponse() local
330 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessUiccAuthenticationNullResponse()
DEapAkaPrimeMethodStateMachineTest.java67 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, new byte[0]); in testIsValidMacUsesHmacSha256() local
68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIsValidMacUsesHmacSha256()
DEapMsChapV2StateTest.java90 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testHandleEapNotification() local
91 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testHandleEapNotification()
DEapAkaMethodStateMachineTest.java110 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testEapAkaFailsOnMultipleAkaNotifications() local
111 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testEapAkaFailsOnMultipleAkaNotifications()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java129 (eapMessage.eapData == null) in decode()
132 eapMessage.eapData.eapType, in decode()
133 "UNKNOWN (" + eapMessage.eapData.eapType + ")"); in decode()
144 && eapMessage.eapData.eapType == EAP_NAK) { in decode()
199 switch (message.eapData.eapType) { in process()
230 switch (message.eapData.eapType) { in process()
284 } else if (eapMessage.eapData.eapType == EAP_NOTIFICATION) { in process()
290 int eapType = eapMessage.eapData.eapType; in process()
367 String content = new String(message.eapData.eapTypeData, StandardCharsets.UTF_8); in handleNotification()
DEapSimAkaMethodStateMachine.java143 EapData eapData = new EapData(eapMethodType, encodedTypeData); in buildClientErrorResponse() local
145 EapMessage response = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildClientErrorResponse()
159 EapData eapData = new EapData(eapType, eapSimTypeData.encode()); in buildResponseMessage() local
162 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessage()
251 EapData eapData = new EapData(getEapMethod(), typeDataWithEmptyMac); in getMac() local
252 EapMessage messageForMac = new EapMessage(eapCode, eapIdentifier, eapData); in getMac()
285 EapData eapData = new EapData(getEapMethod(), eapSimAkaTypeData.encode()); in buildResponseMessageWithMac() local
286 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessageWithMac()
DEapMethodStateMachine.java93 } else if (message.eapData.eapType == EAP_NOTIFICATION) { in handleEapSuccessFailureNotification()
102 + message.eapData.eapType)); in handleEapSuccessFailureNotification()
103 } else if (message.eapData.eapType != getEapMethod()) { in handleEapSuccessFailureNotification()
106 + ", received " + message.eapData.eapType)); in handleEapSuccessFailureNotification()
DEapMsChapV2MethodStateMachine.java231 mTypeDataDecoder.decodeChallengeRequest(mTAG, message.eapData.eapTypeData); in process()
251 mTypeDataDecoder.decodeChallengeRequest(mTAG, message.eapData.eapTypeData); in process()
330 opCode = mTypeDataDecoder.getOpCode(message.eapData.eapTypeData); in process()
346 mTAG, message.eapData.eapTypeData); in process()
388 mTAG, message.eapData.eapTypeData); in process()
433 int eapType = message.eapData.eapType; in process()
471 int eapType = message.eapData.eapType; in process()
485 EapData eapData = new EapData(getEapMethod(), typeData.encode()); in buildEapMessageResponse() local
486 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildEapMessageResponse()

12