Support arrays larger than 2**29 in Whirlpool implementation

Signed-off-by: Graham <gpe@openrs2.org>
Graham 1 year 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() val whirlpool = Whirlpool()
whirlpool.NESSIEinit() whirlpool.NESSIEinit()
whirlpool.NESSIEadd(source, (len * 8).toLong()) whirlpool.NESSIEadd(source, len.toLong() * 8)
val digest = ByteArray(DIGESTBYTES) val digest = ByteArray(DIGESTBYTES)
whirlpool.NESSIEfinalize(digest) whirlpool.NESSIEfinalize(digest)

Loading…
Cancel
Save