diff --git a/crypto/src/main/kotlin/org/openrs2/crypto/Whirlpool.kt b/crypto/src/main/kotlin/org/openrs2/crypto/Whirlpool.kt index 0fbd0335..54a98cb3 100644 --- a/crypto/src/main/kotlin/org/openrs2/crypto/Whirlpool.kt +++ b/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)