Browse Source

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.
pull/3/head
Jake Probst 5 years ago
parent
commit
43cb98db54
  1. 2
      src/crypto/pc.rs

2
src/crypto/pc.rs

@ -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;
}

Loading…
Cancel
Save