HAHAHAAHHHJRFEHGJRHETHFGTERTJFEHJKTHjrekgthrejkghlre

in unrelated news it turns out newserv's pc cipher implementation is
incorrect.
of course given that it just goes redirects to the login server
immediately it never had to do an update_stream to update after 56 bytes
were sent.
This commit is contained in:
Jake Probst 2019-06-27 23:04:59 -07:00
parent 148f002cb3
commit 43cb98db54

View File

@ -82,7 +82,7 @@ impl PSOPCCipher {
}
fn next(&mut self) -> u32 {
if self.offset as usize == PC_STREAM_LENGTH {
if self.offset as usize == PC_STREAM_LENGTH - 1 {
self.update_stream();
self.offset = 1;
}