Make XteaKey a data class

It needs a hashCode/equals implementation as it's used in sets.

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent df2aab7639
commit 3d09c4d90a
  1. 2
      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 = 8
private const val BLOCK_SIZE_MASK = BLOCK_SIZE - 1 private const val BLOCK_SIZE_MASK = BLOCK_SIZE - 1
public class XteaKey( public data class XteaKey(
public val k0: Int, public val k0: Int,
public val k1: Int, public val k1: Int,
public val k2: Int, public val k2: Int,

Loading…
Cancel
Save