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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,