Support arrays larger than 2**29 in Whirlpool implementation

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 9 months ago
parent bba220aebc
commit 483a8a0f16
  1. 2
      crypto/src/main/kotlin/org/openrs2/crypto/Whirlpool.kt

@ -281,7 +281,7 @@ public class Whirlpool {
val whirlpool = Whirlpool()
whirlpool.NESSIEinit()
whirlpool.NESSIEadd(source, (len * 8).toLong())
whirlpool.NESSIEadd(source, len.toLong() * 8)
val digest = ByteArray(DIGESTBYTES)
whirlpool.NESSIEfinalize(digest)

Loading…
Cancel
Save