Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use

Manav Rathia59bb780ee71
diff --git a/web/apps/cast/src/services/pair.ts b/web/apps/cast/src/services/pair.ts
index 59d02851fc..37701fbced 100644
--- a/web/apps/cast/src/services/pair.ts
+++ b/web/apps/cast/src/services/pair.ts
@@ -1,4 +1,4 @@
-import { boxSealOpen, generateKeyPair } from "@/base/crypto/libsodium";
+import { boxSealOpen, generateKeyPair } from "@/base/crypto";
import { clientPackageHeader, ensureOk } from "@/base/http";
import log from "@/base/log";
import { apiURL } from "@/base/origins";
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
index 7b33518870..28b82836ad 100644
--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
@@ -1,6 +1,6 @@
import { TitledMiniDialog } from "@/base/components/MiniDialog";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
-import { boxSeal } from "@/base/crypto/libsodium";
+import { boxSeal } from "@/base/crypto";
import log from "@/base/log";
import type { Collection } from "@/media/collection";
import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";
diff --git a/web/packages/base/crypto/index.ts b/web/packages/base/crypto/index.ts
index 8ad977b882..a333c5ef92 100644
--- a/web/packages/base/crypto/index.ts
+++ b/web/packages/base/crypto/index.ts
@@ -345,7 +345,7 @@ export const decryptMetadataJSON = (r: {
: sharedCryptoWorker().then((w) => w.decryptMetadataJSON(r));
/**
- * Generate a new public/private keypair for use with the boxSeal* functions.
+ * Generate a new public/private keypair.
*/
export const generateKeyPair = async () =>
inWorker()
diff --git a/web/packages/base/crypto/libsodium.ts b/web/packages/base/crypto/libsodium.ts
index d10bd10a78..45caed99eb 100644
--- a/web/packages/base/crypto/libsodium.ts
+++ b/web/packages/base/crypto/libsodium.ts
@@ -664,8 +664,8 @@ export async function completeChunkHashing(hashState: sodium.StateAddress) {
}
/**
- * Generate a new public/private keypair for use with the boxSeal* functions,
- * and return their base64 string representations.
+ * Generate a new public/private keypair for use with public-key encryption
+ * functions, and return their base64 string representations.
*
* These keys are suitable for being used with the {@link boxSeal} and
* {@link boxSealOpen} functions.