mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-04 18:19:18 +02:00
workaround for bug in Opera 10.60 a1. should get rolled back if that bug is fixed
This commit is contained in:
parent
6efa96883e
commit
c3435d1be3
3 changed files with 13 additions and 12 deletions
|
@ -136,13 +136,13 @@ sjcl.mode.ccm = {
|
|||
// mac the data itself
|
||||
macData = w.concat(macData, adata);
|
||||
for (i=0; i<macData.length; i += 4) {
|
||||
mac = prf.encrypt(xor(mac, macData.slice(i,i+4)));
|
||||
mac = prf.encrypt(xor(mac, macData.slice(i,i+4).concat([0,0,0])));
|
||||
}
|
||||
}
|
||||
|
||||
// mac the plaintext
|
||||
for (i=0; i<plaintext.length; i+=4) {
|
||||
mac = prf.encrypt(xor(mac, plaintext.slice(i,i+4)));
|
||||
mac = prf.encrypt(xor(mac, plaintext.slice(i,i+4).concat([0,0,0])));
|
||||
}
|
||||
|
||||
return w.clamp(mac, tlen * 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue