turning off random iv works

This commit is contained in:
Mike Hamburg 2012-01-24 19:59:44 -08:00
parent 4cc368fad9
commit 4abe395d16
1 changed files with 1 additions and 1 deletions

View File

@ -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");