public byte[] doEAPType(byte id, byte[] data) throws NoSuchAlgorithmException { byte md5len = data[0]; byte[] md5data = new byte[md5len]; System.arraycopy(data, 1, md5data, 0, md5len); byte[] response = new byte[17]; response[0] = 16; System.arraycopy(CHAP.chapMD5(id, getPassword(), md5data), 0, response, 1, 16); return response; } }
public byte[] doEAPType(byte id, byte[] data) throws NoSuchAlgorithmException { byte md5len = data[0]; byte[] md5data = new byte[md5len]; System.arraycopy(data, 1, md5data, 0, md5len); byte[] response = new byte[17]; response[0] = 16; System.arraycopy(CHAP.chapMD5(id, getPassword(), md5data), 0, response, 1, 16); return response; } }