Add comment

This commit is contained in:
shinigami-eyes 2021-07-10 10:18:45 +00:00
parent 378d080cef
commit 18c0299aab
1 changed files with 2 additions and 0 deletions

View File

@ -573,6 +573,8 @@ async function encryptSubmission(plainObj: any): Promise<CipherSubmission> {
hash: 'SHA-256'
}, false, ['encrypt']);
// Since asymmetric encryption only supports limited data size, we encrypt data symmetrically
// and then protect the symmetric key asymmetrically.
const symmetricKey = await crypto.subtle.generateKey(
{
name: 'AES-CBC',