Home
last modified time | relevance | path

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

12

/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.java74 assertNull(result.eapData); in testDecode()
82 assertEquals(expectedEapData, result.eapData); in testDecode()
160 assertEquals(eapMessage.eapData, result.eapData); in testEncodeDecode()
190 EapData eapData = new EapData(EAP_IDENTITY, new byte[0]); in testDecodewithExtraBytes() local
195 assertEquals(eapData, result.eapData); in testDecodewithExtraBytes()
/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.java146 EapData eapData = (EapData) o; in equals() local
147 return eapType == eapData.eapType in equals()
148 && Arrays.equals(eapTypeData, eapData.eapTypeData); in equals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaIdentityStateTest.java69 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest() local
70 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest()
88 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessWithoutIdentityRequestAttributes() local
89 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessWithoutIdentityRequestAttributes()
104 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMultipleIdentityRequestAttributes() local
105 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMultipleIdentityRequestAttributes()
123 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessImsiUnavailable() local
124 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessImsiUnavailable()
146 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
147 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapAkaChallengeStateTest.java132 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
133 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
173 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtRand() local
174 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtRand()
193 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtAutn() local
194 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtAutn()
213 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtMac() local
214 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtMac()
273 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessIccAuthenticationNullResponse() local
274 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIccAuthenticationNullResponse()
[all …]
DEapMsChapV2ValidateAuthenticatorStateTest.java83 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessSuccessRequest() local
84 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessSuccessRequest()
105 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidSuccessRequest() local
106 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidSuccessRequest()
126 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessFailureRequest() local
127 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessFailureRequest()
154 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, new byte[0]); in testProcessEmptyTypeData() local
155 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEmptyTypeData()
168 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessInvalidPacket() local
169 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidPacket()
DEapAkaPrimeChallengeStateTest.java115 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapIdentity() local
116 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapIdentity()
136 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testTransitionWithEapAkaPrimeIdentity() local
137 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapAkaPrimeIdentity()
168 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdf() local
169 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdf()
190 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessMissingAtKdfInput() local
191 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdfInput()
211 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessUnsupportedKdf() local
212 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.java102 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification() local
103 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessNotification()
117 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessEapAkaNotification() local
118 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEapAkaNotification()
137 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult() local
138 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult()
DEapAkaPrimeCreatedStateTest.java48 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState() local
49 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState()
68 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
69 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapMsChapV2CreatedStateTest.java47 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallengeRequest() local
48 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallengeRequest()
65 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData() local
66 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData()
DEapAkaPrimeIdentityStateTest.java62 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessIdentityRequest() local
63 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest()
81 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
82 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapTtlsStateTest.java154 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testHandleEapNotification() local
155 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testHandleEapNotification()
193 EapData eapData = new EapData(EAP_TYPE_TTLS, DUMMY_EAP_TYPE_DATA); in processMessageAndVerifyEapResponse() local
194 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in processMessageAndVerifyEapResponse()
225 EapData eapData = new EapData(EAP_TYPE_TTLS, DUMMY_EAP_TYPE_DATA); in processMessageAndVerifyEapError() local
226 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in processMessageAndVerifyEapError()
DEapAkaCreatedStateTest.java55 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToIdentityState() local
56 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState()
75 EapData eapData = new EapData(EAP_TYPE_AKA, DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState() local
76 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState()
DEapAkaPrimeStateTest.java57 EapData eapData = new EapData(EAP_NOTIFICATION, NOTIFICATION_MESSAGE.getBytes()); in testProcessNotification() local
58 EapMessage notification = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessNotification()
71 EapData eapData = new EapData(EAP_TYPE_AKA_PRIME, DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult() local
72 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult()
DEapSimCreatedStateTest.java87 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testTransitionToStartState() local
88 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionToStartState()
106 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
107 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
DEapMsChapV2ChallengeStateTest.java64 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testProcessChallenge() local
65 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallenge()
93 EapData eapData = new EapData(EAP_TYPE_MSCHAP_V2, DUMMY_TYPE_DATA); in testIncorrectTypeData() local
94 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData()
DEapSimChallengeStateTest.java136 EapData eapData = new EapData(EAP_IDENTITY, DUMMY_EAP_TYPE_DATA); in testProcessIncorrectEapMethodType() local
137 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType()
337 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testProcessUiccAuthenticationNullResponse() local
338 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessUiccAuthenticationNullResponse()
379 EapData eapData = new EapData(EAP_TYPE_SIM, DUMMY_EAP_TYPE_DATA); in testHandleSimNotificationBeforeAuthenticated() local
380 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testHandleSimNotificationBeforeAuthenticated()
DEapTtlsCreatedStateTest.java46 EapData eapData = new EapData(EAP_TYPE_TTLS, DUMMY_EAP_TYPE_DATA); in testStartRequest() local
47 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testStartRequest()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMethodStateMachine.java97 } else if (message.eapData.eapType == EAP_NOTIFICATION) { in handleEapSuccessFailureNotification()
106 + message.eapData.eapType)); in handleEapSuccessFailureNotification()
107 } else if (message.eapData.eapType != getEapMethod()) { in handleEapSuccessFailureNotification()
110 + ", received " + message.eapData.eapType)); in handleEapSuccessFailureNotification()
DEapStateMachine.java133 (eapMessage.eapData == null) in decode()
136 eapMessage.eapData.eapType, in decode()
137 "UNKNOWN (" + eapMessage.eapData.eapType + ")"); in decode()
148 && eapMessage.eapData.eapType == EAP_NAK) { in decode()
202 switch (message.eapData.eapType) { in process()
233 switch (message.eapData.eapType) { in process()
309 } else if (eapMessage.eapData.eapType == EAP_NOTIFICATION) { in process()
315 int eapType = eapMessage.eapData.eapType; in process()
398 String content = new String(message.eapData.eapTypeData, StandardCharsets.UTF_8); in handleNotification()
DEapTtlsMethodStateMachine.java158 mTypeDataDecoder.decodeEapTtlsRequestPacket(message.eapData.eapTypeData); in process()
213 mTypeDataDecoder.decodeEapTtlsRequestPacket(message.eapData.eapTypeData); in process()
346 EapData eapData = in buildEapIdentityResponseAvp() local
350 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildEapIdentityResponseAvp()
428 mTypeDataDecoder.decodeEapTtlsRequestPacket(message.eapData.eapTypeData); in process()
619 mTypeDataDecoder.decodeEapTtlsRequestPacket(message.eapData.eapTypeData); in process()
791 EapData eapData = new EapData(getEapMethod(), eapTtlsTypeData.encode()); in buildEapMessageResponse() local
792 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildEapMessageResponse()
820 if (message.eapData.eapType == EAP_NOTIFICATION) { in handleEapSuccessFailureNotification()
822 } else if (message.eapData.eapType != EAP_TYPE_TTLS) { in handleEapSuccessFailureNotification()
[all …]
DEapMsChapV2MethodStateMachine.java235 mTypeDataDecoder.decodeChallengeRequest(mTAG, message.eapData.eapTypeData); in process()
255 mTypeDataDecoder.decodeChallengeRequest(mTAG, message.eapData.eapTypeData); in process()
334 opCode = mTypeDataDecoder.getOpCode(message.eapData.eapTypeData); in process()
350 mTAG, message.eapData.eapTypeData); in process()
392 mTAG, message.eapData.eapTypeData); in process()
437 int eapType = message.eapData.eapType; in process()
475 int eapType = message.eapData.eapType; in process()
489 EapData eapData = new EapData(getEapMethod(), typeData.encode()); in buildEapMessageResponse() local
490 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildEapMessageResponse()
DEapSimAkaMethodStateMachine.java168 EapData eapData = new EapData(eapMethodType, encodedTypeData); in buildClientErrorResponse() local
170 EapMessage response = new EapMessage(EAP_CODE_RESPONSE, eapIdentifier, eapData); in buildClientErrorResponse()
184 EapData eapData = new EapData(eapType, eapSimTypeData.encode()); in buildResponseMessage() local
187 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessage()
436 EapData eapData = new EapData(getEapMethod(), typeDataWithEmptyMac); in getMac() local
437 EapMessage messageForMac = new EapMessage(eapCode, eapIdentifier, eapData); in getMac()
479 EapData eapData = new EapData(getEapMethod(), eapSimAkaTypeData.encode()); in buildResponseMessageWithMac() local
480 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessageWithMac()

12