Home
last modified time | relevance | path

Searched refs:eapLength (Results 1 – 4 of 4) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java102 public final int eapLength; field in EapMessage
109 this.eapLength = EAP_HEADER_LENGTH + ((eapData == null) ? 0 : eapData.getLength()); in EapMessage()
126 int eapLength; in decode() local
131 eapLength = Short.toUnsignedInt(buffer.getShort()); in decode()
143 int eapDataLengthRemaining = Math.max(0, eapLength - EAP_HEADER_LENGTH - 1); in decode()
159 if (eapLength > EAP_HEADER_LENGTH + eapDataLength) { in decode()
174 ByteBuffer byteBuffer = ByteBuffer.allocate(eapLength); in encode()
177 byteBuffer.putShort((short) eapLength); in encode()
245 && eapLength != EAP_HEADER_LENGTH) { in validate()
246 LOG.e(TAG, "Invalid length for EAP-Success/EAP-Failure. Length: " + eapLength); in validate()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapMessageTest.java72 assertEquals(EAP_SUCCESS_PACKET.length, result.eapLength); in testDecode()
80 assertEquals(EAP_REQUEST_SIM_START_PACKET.length, result.eapLength); in testDecode()
158 assertEquals(eapMessage.eapLength, result.eapLength); in testEncodeDecode()
193 assertEquals(EAP_REQUEST_IDENTITY_PACKET.length, result.eapLength); in testDecodewithExtraBytes()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DMethodStateTest.java167 && msg.eapLength == EAP_HEADER_LENGTH in testProcessTransitionToSuccessState()
187 && msg.eapLength == EAP_HEADER_LENGTH in testProcessTransitionToFailureState()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java257 ByteBuffer buffer = ByteBuffer.allocate(messageForMac.eapLength + extraData.length); in getMac()