/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapStateMachine.java | 127 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 …]
|
D | EapSimAkaMethodStateMachine.java | 162 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/ |
D | IkeEapPayload.java | 32 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/ |
D | EapAkaChallengeStateTest.java | 126 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 …]
|
D | EapAkaIdentityStateTest.java | 68 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()
|
D | EapMsChapV2ValidateAuthenticatorStateTest.java | 83 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()
|
D | EapAkaPrimeChallengeStateTest.java | 115 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 …]
|
D | EapSimStartStateTest.java | 120 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()
|
D | EapTtlsCreatedStateTest.java | 44 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()
|
D | EapAkaPrimeCreatedStateTest.java | 48 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()
|
D | EapMsChapV2CreatedStateTest.java | 47 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()
|
D | EapAkaPrimeIdentityStateTest.java | 61 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()
|
D | EapSimCreatedStateTest.java | 86 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()
|
D | EapAkaCreatedStateTest.java | 55 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()
|
D | EapMsChapV2ChallengeStateTest.java | 64 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()
|
D | EapAkaMethodStateMachineTest.java | 111 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()
|
D | EapSimStateTest.java | 115 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()
|
D | EapSimMethodStateMachineTest.java | 113 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()
|
D | EapAkaStateTest.java | 114 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()
|
D | EapSimChallengeStateTest.java | 129 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()
|
D | EapAkaPrimeMethodStateMachineTest.java | 68 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()
|
D | EapTtlsStateTest.java | 101 EapMessage eapMessage = new EapMessage(EAP_CODE_REQUEST, ID_INT, eapData); in testHandleEapNotification() local 104 EapResult result = mStateMachine.process(eapMessage); in testHandleEapNotification()
|
D | EapAkaPrimeStateTest.java | 71 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/ |
D | EapMessageTest.java | 141 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/ |
D | IkeEapPayloadTest.java | 45 assertArrayEquals(EAP_SUCCESS_PACKET, ikeEapPayload.eapMessage); in testDecodeIkeEapPayload() 60 assertArrayEquals(EAP_SUCCESS_PACKET, ikeEapPayload.eapMessage); in testOutboundConstructorForIke()
|