mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
fix ts -> tag
This commit is contained in:
parent
8aee1ef00f
commit
9d07c282ca
@ -56,7 +56,7 @@
|
|||||||
rp.key = password;
|
rp.key = password;
|
||||||
|
|
||||||
/* do the encryption */
|
/* 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));
|
return j.encode(j._subtract(p, j.defaults));
|
||||||
},
|
},
|
||||||
@ -100,7 +100,7 @@
|
|||||||
prp = new sjcl.cipher[p.cipher](password);
|
prp = new sjcl.cipher[p.cipher](password);
|
||||||
|
|
||||||
/* do the decryption */
|
/* 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 */
|
/* return the json data */
|
||||||
j._add(rp, p);
|
j._add(rp, p);
|
||||||
|
Loading…
Reference in New Issue
Block a user