diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2018-12-28 13:41:25 -0500 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2018-12-28 13:41:25 -0500 |
commit | 17a989db6c4d42828f68afed20bafcb377c65cfb (patch) | |
tree | de29380ff1ecd0ad17e7134caab8c1054fbb9667 /javascript/test/sas.spec.js | |
parent | ded55f50536d852b544c7255551fc3b8c1e7b044 (diff) |
allow specifying the info parameter for the HKDF
Diffstat (limited to 'javascript/test/sas.spec.js')
-rw-r--r-- | javascript/test/sas.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/test/sas.spec.js b/javascript/test/sas.spec.js index 544131d..af7ea65 100644 --- a/javascript/test/sas.spec.js +++ b/javascript/test/sas.spec.js @@ -42,12 +42,12 @@ describe("sas", function() { it('should create matching SAS bytes', function () { alice.set_their_key(bob.get_pubkey()); bob.set_their_key(alice.get_pubkey()); - expect(alice.generate_bytes(5).toString()).toEqual(bob.generate_bytes(5).toString()); + expect(alice.generate_bytes("SAS", 5).toString()).toEqual(bob.generate_bytes("SAS", 5).toString()); }); it('should create matching MACs', function () { alice.set_their_key(bob.get_pubkey()); bob.set_their_key(alice.get_pubkey()); - expect(alice.calculate_mac("test").toString()).toEqual(bob.calculate_mac("test").toString()); + expect(alice.calculate_mac("test", "MAC").toString()).toEqual(bob.calculate_mac("test", "MAC").toString()); }); }); |