From 72b3a9cec9a7513b8458911e0c04296a1fceab77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 9 May 2023 21:01:46 +0100 Subject: [PATCH] fix(crypto): xiami subtract off by one (#9) --- src/decrypt-worker/crypto/xiami/xiami.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decrypt-worker/crypto/xiami/xiami.ts b/src/decrypt-worker/crypto/xiami/xiami.ts index 6cf1b38..352da08 100644 --- a/src/decrypt-worker/crypto/xiami/xiami.ts +++ b/src/decrypt-worker/crypto/xiami/xiami.ts @@ -19,7 +19,7 @@ const u8Sub = (a: number, b: number) => { return a - b; } - return a + 0xff - b; + return a + 0x100 - b; }; export class XiamiCrypto implements CryptoBase {