diff --git a/src/Utils/lt-hash.ts b/src/Utils/lt-hash.ts index 1842a31..e3cc666 100644 --- a/src/Utils/lt-hash.ts +++ b/src/Utils/lt-hash.ts @@ -38,13 +38,13 @@ class d { async _addSingle(e, t) { var r = this const n = new Uint8Array(await hkdf(Buffer.from(t), o, { info: r.salt })).buffer - return r.performPointwiseWithOverflow(e, n, ((e, t) => e + t)) + return r.performPointwiseWithOverflow(await e, n, ((e, t) => e + t)) } async _subtractSingle(e, t) { var r = this const n = new Uint8Array(await hkdf(Buffer.from(t), o, { info: r.salt })).buffer - return r.performPointwiseWithOverflow(e, n, ((e, t) => e - t)) + return r.performPointwiseWithOverflow(await e, n, ((e, t) => e - t)) } performPointwiseWithOverflow(e, t, r) { const n = new DataView(e) @@ -58,4 +58,4 @@ class d { return a } } -export const LT_HASH_ANTI_TAMPERING = new d('WhatsApp Patch Integrity') \ No newline at end of file +export const LT_HASH_ANTI_TAMPERING = new d('WhatsApp Patch Integrity')