From 7caeb4b07b73ef134dd189fb24eec0ae1106234a Mon Sep 17 00:00:00 2001 From: Jixun Wu 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 {