From 4abe395d1680aa2f2e0fcd134ba97602389f985f Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Tue, 24 Jan 2012 19:59:44 -0800 Subject: [PATCH] turning off random iv works --- demo/example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/example.js b/demo/example.js index 99363d5..db1d572 100644 --- a/demo/example.js +++ b/demo/example.js @@ -64,7 +64,7 @@ function doEncrypt() { mode:v.mode, ts:parseInt(v.tag), ks:parseInt(v.keysize) }; - if (!v.freshiv || !usedIvs[v.iv]) { iv:v.iv; } + if (!v.freshiv || !usedIvs[v.iv]) { p.iv = v.iv; } if (!v.freshsalt || !usedSalts[v.salt]) { p.salt = v.salt; } ct = sjcl.encrypt(password || key, plaintext, p, rp).replace(/,/g,",\n");