From 3d09c4d90ad86e86ca53885ae5c55b0f03906a60 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 24 Feb 2021 22:51:36 +0000 Subject: [PATCH] Make XteaKey a data class It needs a hashCode/equals implementation as it's used in sets. Signed-off-by: Graham --- crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt b/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt index 183d972637..eff2db8e72 100644 --- a/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt +++ b/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt @@ -7,7 +7,7 @@ private const val ROUNDS = 32 private const val BLOCK_SIZE = 8 private const val BLOCK_SIZE_MASK = BLOCK_SIZE - 1 -public class XteaKey( +public data class XteaKey( public val k0: Int, public val k1: Int, public val k2: Int,