From 6bfdb07f42a0306483f0abed5467fffc653ab983 Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 31 Dec 2021 11:47:33 +0000 Subject: [PATCH] Update comment to confirm the guess was correct Verified against three different build 919 master indexes signed by Jagex. Signed-off-by: Graham --- cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt b/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt index 885021a7..d881ff76 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt +++ b/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)