Home
last modified time | relevance | path

Searched refs:eapMessage (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java127 EapMessage eapMessage = EapMessage.decode(packet); in decode() local
131 (eapMessage.eapData == null) in decode()
134 eapMessage.eapData.eapType, in decode()
135 "UNKNOWN (" + eapMessage.eapData.eapType + ")"); in decode()
137 + EAP_CODE_STRING.getOrDefault(eapMessage.eapCode, "UNKNOWN") in decode()
141 if (eapMessage.eapCode == EAP_CODE_RESPONSE) { in decode()
145 } else if (eapMessage.eapCode == EAP_CODE_REQUEST in decode()
146 && eapMessage.eapData.eapType == EAP_NAK) { in decode()
153 return new DecodeResult(eapMessage); in decode()
165 public final EapMessage eapMessage; field in EapStateMachine.EapState.DecodeResult
[all …]
DEapSimAkaMethodStateMachine.java162 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessage() local
163 return EapResult.EapResponse.getEapResponse(eapMessage); in buildResponseMessage()
286 EapMessage eapMessage = new EapMessage(EAP_CODE_RESPONSE, identifier, eapData); in buildResponseMessageWithMac() local
287 return EapResponse.getEapResponse(eapMessage); in buildResponseMessageWithMac()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEapPayload.java32 public final byte[] eapMessage; field in IkeEapPayload
43 IkeEapPayload(boolean isCritical, byte[] eapMessage) { in IkeEapPayload() argument
46 this.eapMessage = eapMessage; in IkeEapPayload()
56 public IkeEapPayload(byte[] eapMessage) { in IkeEapPayload() argument
59 this.eapMessage = eapMessage; in IkeEapPayload()
71 byteBuffer.put(eapMessage); in encodeToByteBuffer()
81 return GENERIC_HEADER_LENGTH + eapMessage.length; in getPayloadLength()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaChallengeStateTest.java126 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType() local
128 EapResult result = mChallengeState.process(eapMessage); in testProcessIncorrectEapMethodType()
167 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtRand() local
177 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessMissingAtRand()
187 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtAutn() local
197 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessMissingAtAutn()
207 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtMac() local
217 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessMissingAtMac()
267 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIccAuthenticationNullResponse() local
286 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessIccAuthenticationNullResponse()
[all …]
DEapAkaIdentityStateTest.java68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest() local
76 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessIdentityRequest()
87 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessWithoutIdentityRequestAttributes() local
93 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessWithoutIdentityRequestAttributes()
103 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMultipleIdentityRequestAttributes() local
112 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessMultipleIdentityRequestAttributes()
122 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessImsiUnavailable() local
130 EapError eapError = (EapError) mEapAkaMethodStateMachine.process(eapMessage); in testProcessImsiUnavailable()
145 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState() local
153 mEapAkaMethodStateMachine.process(eapMessage); in testProcessTransitionToChallengeState()
DEapMsChapV2ValidateAuthenticatorStateTest.java83 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessSuccessRequest() local
94 EapResult result = mStateMachine.process(eapMessage); in testProcessSuccessRequest()
105 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidSuccessRequest() local
116 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidSuccessRequest()
126 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessFailureRequest() local
143 EapResult result = mStateMachine.process(eapMessage); in testProcessFailureRequest()
154 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEmptyTypeData() local
159 EapResult result = mStateMachine.process(eapMessage); in testProcessEmptyTypeData()
168 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidPacket() local
172 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidPacket()
DEapAkaPrimeChallengeStateTest.java115 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapIdentity() local
121 mStateMachine.process(eapMessage); in testTransitionWithEapIdentity()
136 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionWithEapAkaPrimeIdentity() local
144 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity()
156 mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity()
168 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdf() local
182 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessMissingAtKdf()
190 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessMissingAtKdfInput() local
203 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessMissingAtKdfInput()
211 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessUnsupportedKdf() local
[all …]
DEapSimStartStateTest.java120 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType() local
122 EapResult result = mStartState.process(eapMessage); in testProcessIncorrectEapMethodType()
186 EapMessage eapMessage = new EapMessage( in testAddIdentityAttributeToResponseImsiUnavailable() local
198 EapResult result = mStartState.process(eapMessage); in testAddIdentityAttributeToResponseImsiUnavailable()
217 EapMessage eapMessage = in testProcessWithoutIdentityRequest() local
229 EapResult result = mEapSimMethodStateMachine.process(eapMessage); in testProcessWithoutIdentityRequest()
246 mEapSimMethodStateMachine.process(eapMessage); in testProcessWithoutIdentityRequest()
DEapTtlsCreatedStateTest.java44 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testStartRequest() local
52 mStateMachine.process(eapMessage); in testStartRequest()
60 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testUnexpectedRequest() local
68 EapResult eapResult = mStateMachine.process(eapMessage); in testUnexpectedRequest()
DEapAkaPrimeCreatedStateTest.java48 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState() local
56 mStateMachine.process(eapMessage); in testProcessTransitionToIdentityState()
68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState() local
76 mStateMachine.process(eapMessage); in testProcessTransitionToChallengeState()
DEapMsChapV2CreatedStateTest.java47 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallengeRequest() local
55 mStateMachine.process(eapMessage); in testProcessChallengeRequest()
65 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData() local
74 EapResult result = mStateMachine.process(eapMessage); in testIncorrectTypeData()
DEapAkaPrimeIdentityStateTest.java61 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIdentityRequest() local
69 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessIdentityRequest()
80 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState() local
88 mStateMachine.process(eapMessage); in testProcessTransitionToChallengeState()
DEapSimCreatedStateTest.java86 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testTransitionToStartState() local
94 mEapSimMethodStateMachine.process(eapMessage); in testTransitionToStartState()
105 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType() local
107 EapResult result = mEapSimMethodStateMachine.process(eapMessage); in testProcessIncorrectEapMethodType()
DEapAkaCreatedStateTest.java55 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToIdentityState() local
63 mEapAkaMethodStateMachine.process(eapMessage); in testProcessTransitionToIdentityState()
75 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessTransitionToChallengeState() local
83 mEapAkaMethodStateMachine.process(eapMessage); in testProcessTransitionToChallengeState()
DEapMsChapV2ChallengeStateTest.java64 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessChallenge() local
82 EapResult result = mStateMachine.process(eapMessage); in testProcessChallenge()
93 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIncorrectTypeData() local
101 EapResult result = mStateMachine.process(eapMessage); in testIncorrectTypeData()
DEapAkaMethodStateMachineTest.java111 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testEapAkaFailsOnMultipleAkaNotifications() local
121 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testEapAkaFailsOnMultipleAkaNotifications()
133 eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testEapAkaFailsOnMultipleAkaNotifications()
147 EapError eapError = (EapError) mEapAkaMethodStateMachine.process(eapMessage); in testEapAkaFailsOnMultipleAkaNotifications()
DEapSimStateTest.java115 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEapSimNotification() local
125 EapResponse eapResponse = (EapResponse) mEapSimMethodStateMachine.process(eapMessage); in testProcessEapSimNotification()
135 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult() local
142 EapResult result = mEapSimMethodStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
DEapSimMethodStateMachineTest.java113 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testEapSimFailsOnMultipleSimNotifications() local
123 EapResponse eapResponse = (EapResponse) mEapSimMethodStateMachine.process(eapMessage); in testEapSimFailsOnMultipleSimNotifications()
134 eapResponse = (EapResponse) mEapSimMethodStateMachine.process(eapMessage); in testEapSimFailsOnMultipleSimNotifications()
147 EapError eapError = (EapError) mEapSimMethodStateMachine.process(eapMessage); in testEapSimFailsOnMultipleSimNotifications()
DEapAkaStateTest.java114 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessEapAkaNotification() local
124 EapResponse eapResponse = (EapResponse) mEapAkaMethodStateMachine.process(eapMessage); in testProcessEapAkaNotification()
134 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult() local
141 EapResult result = mEapAkaMethodStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
DEapSimChallengeStateTest.java129 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessIncorrectEapMethodType() local
131 EapResult result = mChallengeState.process(eapMessage); in testProcessIncorrectEapMethodType()
330 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessUiccAuthenticationNullResponse() local
347 EapError eapError = (EapError) mEapSimMethodStateMachine.process(eapMessage); in testProcessUiccAuthenticationNullResponse()
DEapAkaPrimeMethodStateMachineTest.java68 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testIsValidMacUsesHmacSha256() local
72 assertTrue(mStateMachine.isValidMac(TAG, eapMessage, eapAkaPrimeTypeData, new byte[0])); in testIsValidMacUsesHmacSha256()
DEapTtlsStateTest.java101 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testHandleEapNotification() local
104 EapResult result = mStateMachine.process(eapMessage); in testHandleEapNotification()
DEapAkaPrimeStateTest.java71 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testProcessInvalidDecodeResult() local
78 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapMessageTest.java141 EapMessage eapMessage = new EapMessage(EAP_CODE_SUCCESS, ID_INT, null); in testEncode() local
142 byte[] actualPacket = eapMessage.encode(); in testEncode()
146 eapMessage = new EapMessage(EAP_CODE_RESPONSE, ID_INT, nakData); in testEncode()
147 actualPacket = eapMessage.encode(); in testEncode()
153 EapMessage eapMessage = new EapMessage(EAP_CODE_SUCCESS, ID_INT, null); in testEncodeDecode() local
154 EapMessage result = EapMessage.decode(eapMessage.encode()); in testEncodeDecode()
156 assertEquals(eapMessage.eapCode, result.eapCode); in testEncodeDecode()
157 assertEquals(eapMessage.eapIdentifier, result.eapIdentifier); in testEncodeDecode()
158 assertEquals(eapMessage.eapLength, result.eapLength); in testEncodeDecode()
159 assertEquals(eapMessage.eapData, result.eapData); in testEncodeDecode()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEapPayloadTest.java45 assertArrayEquals(EAP_SUCCESS_PACKET, ikeEapPayload.eapMessage); in testDecodeIkeEapPayload()
60 assertArrayEquals(EAP_SUCCESS_PACKET, ikeEapPayload.eapMessage); in testOutboundConstructorForIke()

12