chore: Minor refactoring for consistency (#2425)

This commit is contained in:
Lipis
2020-11-29 18:32:51 +02:00
committed by GitHub
parent 204c8370a0
commit b21fd49412
21 changed files with 76 additions and 82 deletions

View File

@@ -153,7 +153,7 @@ export const decryptAESGEM = async (
const decrypted = await window.crypto.subtle.decrypt(
{
name: "AES-GCM",
iv: iv,
iv,
},
importedKey,
data,
@@ -195,7 +195,7 @@ export const exportToBackend = async (
const encrypted = await window.crypto.subtle.encrypt(
{
name: "AES-GCM",
iv: iv,
iv,
},
key,
encoded,
@@ -248,7 +248,7 @@ const importFromBackend = async (
const decrypted = await window.crypto.subtle.decrypt(
{
name: "AES-GCM",
iv: iv,
iv,
},
key,
buffer,