Searched refs:eapLength (Results 1 – 4 of 4) sorted by relevance
102 public final int eapLength; field in EapMessage109 this.eapLength = EAP_HEADER_LENGTH + ((eapData == null) ? 0 : eapData.getLength()); in EapMessage()126 int eapLength; in decode() local131 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()
72 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()
167 && msg.eapLength == EAP_HEADER_LENGTH in testProcessTransitionToSuccessState()187 && msg.eapLength == EAP_HEADER_LENGTH in testProcessTransitionToFailureState()
257 ByteBuffer buffer = ByteBuffer.allocate(messageForMac.eapLength + extraData.length); in getMac()