mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 12:22:22 -05:00
update crypto lib
This commit is contained in:
parent
b5912a1515
commit
09a104ce80
@ -34,6 +34,8 @@
|
|||||||
delete i.plaintext;
|
delete i.plaintext;
|
||||||
delete i.key;
|
delete i.key;
|
||||||
delete i.receiverPk;
|
delete i.receiverPk;
|
||||||
|
|
||||||
|
return i;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,6 +89,8 @@
|
|||||||
delete i.signature;
|
delete i.signature;
|
||||||
delete i.encryptedKey;
|
delete i.encryptedKey;
|
||||||
delete i.senderPk;
|
delete i.senderPk;
|
||||||
|
|
||||||
|
return i;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -126,6 +130,8 @@
|
|||||||
|
|
||||||
// delete ciphertext values
|
// delete ciphertext values
|
||||||
delete i.ciphertext;
|
delete i.ciphertext;
|
||||||
|
|
||||||
|
return i;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -139,6 +145,8 @@
|
|||||||
// decrypt item for user
|
// decrypt item for user
|
||||||
self.decryptItem(i);
|
self.decryptItem(i);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return list;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,6 +160,8 @@
|
|||||||
|
|
||||||
// symmetrically decrypt JSON and parse to object literal
|
// symmetrically decrypt JSON and parse to object literal
|
||||||
this.decryptItem(i);
|
this.decryptItem(i);
|
||||||
|
|
||||||
|
return i;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user