Add comment
This commit is contained in:
parent
378d080cef
commit
18c0299aab
@ -573,6 +573,8 @@ async function encryptSubmission(plainObj: any): Promise<CipherSubmission> {
|
|||||||
hash: 'SHA-256'
|
hash: 'SHA-256'
|
||||||
}, false, ['encrypt']);
|
}, 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(
|
const symmetricKey = await crypto.subtle.generateKey(
|
||||||
{
|
{
|
||||||
name: 'AES-CBC',
|
name: 'AES-CBC',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user