DataInputStream in = new DataInputStream(inStream);
String user = in.readUTF();
long t1 = in.readLong();
double q1 = in.readDouble();
int length = in.readInt();
byte[] protected1 = new byte[length];
in.readFully(protected1);
String password = lookupPassword(user);
byte[] local = Protection.makeDigest(user, password, t1, q1);
return MessageDigest.isEqual(protected1, local);