From 9d07c282ca3bd769d6fb86cfdaafbc2b29817e68 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Sat, 25 Jun 2011 16:53:15 -0700 Subject: [PATCH] fix ts -> tag --- core/convenience.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/convenience.js b/core/convenience.js index 2a7a3f2..de94940 100644 --- a/core/convenience.js +++ b/core/convenience.js @@ -56,7 +56,7 @@ rp.key = password; /* do the encryption */ - p.ct = sjcl.mode[p.mode].encrypt(prp, plaintext, p.iv, p.adata, p.tag); + p.ct = sjcl.mode[p.mode].encrypt(prp, plaintext, p.iv, p.adata, p.ts); return j.encode(j._subtract(p, j.defaults)); }, @@ -100,7 +100,7 @@ prp = new sjcl.cipher[p.cipher](password); /* do the decryption */ - ct = sjcl.mode[p.mode].decrypt(prp, p.ct, p.iv, p.adata, p.tag); + ct = sjcl.mode[p.mode].decrypt(prp, p.ct, p.iv, p.adata, p.ts); /* return the json data */ j._add(rp, p);