fix(crypto): xiami subtract off by one (#9)

This commit is contained in:
Jixun Wu 2023-05-09 21:01:46 +01:00
parent 68e4aef4c6
commit 7caeb4b07b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {