md5.update((byte)(packetLength >> 8));
md5.update((byte)(packetLength & 0x0ff));
md5.update(requestAuthenticator, 0, requestAuthenticator.length);
md5.update(attributes, 0, attributes.length);
md5.update(RadiusUtil.getUtf8Bytes(sharedSecret));
return md5.digest();
}
/**
* Reads a Radius packet from the given input stream and
* creates an appropiate RadiusPacket descendant object.