Update comment to confirm the guess was correct

Verified against three different build 919 master indexes signed by
Jagex.

Signed-off-by: Graham <gpe@openrs2.org>
Graham 3 years ago
parent 84a43e9fbe
commit 6bfdb07f42
  1. 6
      cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt

@ -256,7 +256,11 @@ public data class Js5MasterIndex(
"Invalid signature length"
}
// the client doesn't verify what I presume is the RSA magic byte
/*
* This is the RSA magic byte. The client doesn't
* verify this (so we also skip it for compatibility),
* but the server does still set it to 10.
*/
plaintext.skipBytes(1)
val expected = ByteArray(Whirlpool.DIGESTBYTES)

Loading…
Cancel
Save