/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ |
D | EapDataTest.java | 65 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 …]
|
D | EapMessageTest.java | 74 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/ |
D | EapMessage.java | 103 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 …]
|
D | EapData.java | 146 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/ |
D | EapAkaIdentityStateTest.java | 69 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()
|
D | EapAkaChallengeStateTest.java | 132 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 …]
|
D | EapMsChapV2ValidateAuthenticatorStateTest.java | 83 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()
|
D | EapAkaPrimeChallengeStateTest.java | 115 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 …]
|
D | EapSimStateTest.java | 99 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()
|
D | EapAkaStateTest.java | 102 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()
|
D | EapAkaPrimeCreatedStateTest.java | 48 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()
|
D | EapMsChapV2CreatedStateTest.java | 47 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()
|
D | EapAkaPrimeIdentityStateTest.java | 62 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()
|
D | EapTtlsStateTest.java | 154 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()
|
D | EapAkaCreatedStateTest.java | 55 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()
|
D | EapAkaPrimeStateTest.java | 57 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()
|
D | EapSimCreatedStateTest.java | 87 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()
|
D | EapMsChapV2ChallengeStateTest.java | 64 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()
|
D | EapSimChallengeStateTest.java | 136 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()
|
D | EapTtlsCreatedStateTest.java | 46 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/ |
D | EapMethodStateMachine.java | 97 } 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()
|
D | EapStateMachine.java | 133 (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()
|
D | EapTtlsMethodStateMachine.java | 158 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 …]
|
D | EapMsChapV2MethodStateMachine.java | 235 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()
|
D | EapSimAkaMethodStateMachine.java | 168 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()
|