Use consistent case for Unicode escapes in the Whirlpool S-box

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent f8835b7581
commit 1e3257acf7
  1. 32
      crypto/src/main/kotlin/org/openrs2/crypto/Whirlpool.kt

@ -195,22 +195,22 @@ public class Whirlpool {
private const val DIGESTBITS = 512 private const val DIGESTBITS = 512
public const val DIGESTBYTES: Int = DIGESTBITS ushr 3 public const val DIGESTBYTES: Int = DIGESTBITS ushr 3
private const val R = 10 private const val R = 10
private const val sbox = "\u1823\uc6E8\u87B8\u014F\u36A6\ud2F5\u796F\u9152" + private const val sbox = "\u1823\uC6E8\u87B8\u014F\u36A6\uD2F5\u796F\u9152" +
"\u60Bc\u9B8E\uA30c\u7B35\u1dE0\ud7c2\u2E4B\uFE57" + "\u60BC\u9B8E\uA30C\u7B35\u1DE0\uD7C2\u2E4B\uFE57" +
"\u1577\u37E5\u9FF0\u4AdA\u58c9\u290A\uB1A0\u6B85" + "\u1577\u37E5\u9FF0\u4ADA\u58C9\u290A\uB1A0\u6B85" +
"\uBd5d\u10F4\ucB3E\u0567\uE427\u418B\uA77d\u95d8" + "\uBD5D\u10F4\uCB3E\u0567\uE427\u418B\uA77D\u95D8" +
"\uFBEE\u7c66\udd17\u479E\ucA2d\uBF07\uAd5A\u8333" + "\uFBEE\u7C66\uDD17\u479E\uCA2D\uBF07\uAD5A\u8333" +
"\u6302\uAA71\uc819\u49d9\uF2E3\u5B88\u9A26\u32B0" + "\u6302\uAA71\uC819\u49D9\uF2E3\u5B88\u9A26\u32B0" +
"\uE90F\ud580\uBEcd\u3448\uFF7A\u905F\u2068\u1AAE" + "\uE90F\uD580\uBECD\u3448\uFF7A\u905F\u2068\u1AAE" +
"\uB454\u9322\u64F1\u7312\u4008\uc3Ec\udBA1\u8d3d" + "\uB454\u9322\u64F1\u7312\u4008\uC3EC\uDBA1\u8D3D" +
"\u9700\ucF2B\u7682\ud61B\uB5AF\u6A50\u45F3\u30EF" + "\u9700\uCF2B\u7682\uD61B\uB5AF\u6A50\u45F3\u30EF" +
"\u3F55\uA2EA\u65BA\u2Fc0\udE1c\uFd4d\u9275\u068A" + "\u3F55\uA2EA\u65BA\u2FC0\uDE1C\uFD4D\u9275\u068A" +
"\uB2E6\u0E1F\u62d4\uA896\uF9c5\u2559\u8472\u394c" + "\uB2E6\u0E1F\u62D4\uA896\uF9C5\u2559\u8472\u394C" +
"\u5E78\u388c\ud1A5\uE261\uB321\u9c1E\u43c7\uFc04" + "\u5E78\u388C\uD1A5\uE261\uB321\u9C1E\u43C7\uFC04" +
"\u5199\u6d0d\uFAdF\u7E24\u3BAB\ucE11\u8F4E\uB7EB" + "\u5199\u6D0D\uFADF\u7E24\u3BAB\uCE11\u8F4E\uB7EB" +
"\u3c81\u94F7\uB913\u2cd3\uE76E\uc403\u5644\u7FA9" + "\u3C81\u94F7\uB913\u2CD3\uE76E\uC403\u5644\u7FA9" +
"\u2ABB\uc153\udc0B\u9d6c\u3174\uF646\uAc89\u14E1" + "\u2ABB\uC153\uDC0B\u9D6C\u3174\uF646\uAC89\u14E1" +
"\u163A\u6909\u70B6\ud0Ed\ucc42\u98A4\u285c\uF886" "\u163A\u6909\u70B6\uD0ED\uCC42\u98A4\u285C\uF886"
private val C = Array(8) { LongArray(256) } private val C = Array(8) { LongArray(256) }
private val rc = LongArray(R + 1) private val rc = LongArray(R + 1)

Loading…
Cancel
Save