Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 5679fe7

Browse files
Remove logging from verifyMAC on mismatch (#44)
We don't use it when debugging anyway.
1 parent c95f588 commit 5679fe7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

dist/libsignal-protocol.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35291,8 +35291,6 @@ var Internal = Internal || {};
3529135291
result = result | (a[i] ^ b[i]);
3529235292
}
3529335293
if (result !== 0) {
35294-
console.log('Our MAC ', dcodeIO.ByteBuffer.wrap(calculated_mac).toHex());
35295-
console.log('Their MAC', dcodeIO.ByteBuffer.wrap(mac).toHex());
3529635294
throw new Error("Bad MAC");
3529735295
}
3529835296
});

src/crypto.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ var Internal = Internal || {};
101101
result = result | (a[i] ^ b[i]);
102102
}
103103
if (result !== 0) {
104-
console.log('Our MAC ', dcodeIO.ByteBuffer.wrap(calculated_mac).toHex());
105-
console.log('Their MAC', dcodeIO.ByteBuffer.wrap(mac).toHex());
106104
throw new Error("Bad MAC");
107105
}
108106
});

0 commit comments

Comments
 (0)