Commit 9e251a0ec3bb0d48caf9ec19c7e8d4552cd44e4a
oops, too much tidying
Dominic Tarr committed on 12/27/2018, 8:37:23 PMParent: f8b540f929cf4de61e694622166b3a1e1505f22a
Files changed
test/index.js | changed |
test/index.js | ||
---|---|---|
@@ -59,8 +59,9 @@ | ||
59 | 59 … | var nonce = u.id2Buffer(data.key) |
60 | 60 … | var keys = [bob_keys, alice_keys].map(function (key) { |
61 | 61 … | return scalarmult(bob_keys.private, key.public) |
62 | 62 … | }) |
63 … | + var ctxt = group_box.box(ptxt, nonce, keys) | |
63 | 64 … | var _key = group_box.unboxKey(ctxt, nonce, keys, 8) |
64 | 65 … | t.ok(_key, 'message can be decrypted') |
65 | 66 … | bob.publish( |
66 | 67 … | ctxt.toString('base64')+'.box2', |
Built with git-ssb-web