Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Rename

Manav Rathi9640d485a218
diff --git a/web/packages/base/crypto/ente.ts b/web/packages/base/crypto/ente.ts
index 13e9cf287e..017c38aa2c 100644
--- a/web/packages/base/crypto/ente.ts
+++ b/web/packages/base/crypto/ente.ts
@@ -127,7 +127,7 @@ export const encryptMetadata = async (metadata: unknown, keyB64: string) => {
*
* @returns The decrypted bytes.
*/
-export const decryptAssociatedData = libsodium.decryptChaChaOneShot2;
+export const decryptAssociatedData = libsodium.decryptChaChaOneShot;
/**
* Decrypt the thumbnail for a file.
diff --git a/web/packages/shared/crypto/internal/libsodium.ts b/web/packages/shared/crypto/internal/libsodium.ts
index 2f63e6d2f5..9e2df77dfe 100644
--- a/web/packages/shared/crypto/internal/libsodium.ts
+++ b/web/packages/shared/crypto/internal/libsodium.ts
@@ -265,7 +265,7 @@ export async function encryptFileChunk(
*
* @returns The decrypted metadata bytes.
*/
-export const decryptChaChaOneShot2 = async (
+export const decryptChaChaOneShot = async (
encryptedData: Uint8Array,
headerB64: string,
keyB64: string,