Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/unit/Axolotl.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe("Axolotl", () => {
aliceSession = {};
bobSession = {};

crypto.validSiganture = true;
crypto.validSignature = true;

aliceIdentityKeyPair = yield crypto.generateKeyPair();
aliceSignedPreKeyPair = yield crypto.generateKeyPair();
Expand Down Expand Up @@ -372,7 +372,7 @@ describe("Axolotl", () => {
yield assert.isRejected(decryptMessage(bobAxolotl, aliceSession, ciphertext), InvalidMessageException);
}));
it("rejects bad signedPreKey signature", co.wrap(function*() {
crypto.validSiganture = false;
crypto.validSignature = false;
yield assert.isRejected(createEncryptedMessage(aliceAxolotl, bobSession), InvalidKeyException);
}));
it("rejects preKeyBundle if neither preKey nor signedPreKey are present", co.wrap(function*() {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/FakeCrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ var fakeCrypto = {
resolve(new ArrayBuffer(32));
});
},
validSiganture: true,
validSignature: true,
verifySignature: function() {
return new Promise(function(resolve) {
resolve(fakeCrypto.validSiganture);
resolve(fakeCrypto.validSignature);
});
},
hmac: function(key, data) {
Expand Down