mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-26 23:26:59 +00:00
fix(crypto): xiami subtract off by one (#9)
This commit is contained in:
1 parent
1c1d234244
commit
72b3a9cec9
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user