Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update import

Manav Rathib7de8ca9e5bd
diff --git a/web/apps/accounts/src/services/passkey.ts b/web/apps/accounts/src/services/passkey.ts
index f470b1d1cc..3c12e31d79 100644
--- a/web/apps/accounts/src/services/passkey.ts
+++ b/web/apps/accounts/src/services/passkey.ts
@@ -1,15 +1,15 @@
import { clientPackageName } from "@/base/app";
+import {
+ fromB64URLSafeNoPadding,
+ toB64URLSafeNoPadding,
+ toB64URLSafeNoPaddingString,
+} from "@/base/crypto/libsodium";
import { isDevBuild } from "@/base/env";
import { clientPackageHeader, ensureOk, HTTPError } from "@/base/http";
import { apiURL } from "@/base/origins";
import { TwoFactorAuthorizationResponse } from "@/base/types/credentials";
import { ensure } from "@/utils/ensure";
import { nullToUndefined } from "@/utils/transform";
-import {
- fromB64URLSafeNoPadding,
- toB64URLSafeNoPadding,
- toB64URLSafeNoPaddingString,
-} from "@ente/shared/crypto/internal/libsodium";
import { z } from "zod";
/** Return true if the user's browser supports WebAuthn (Passkeys). */
diff --git a/web/apps/cast/src/services/pair.ts b/web/apps/cast/src/services/pair.ts
index 287122c456..378165eb2b 100644
--- a/web/apps/cast/src/services/pair.ts
+++ b/web/apps/cast/src/services/pair.ts
@@ -1,9 +1,6 @@
+import { boxSealOpen, generateKeyPair } from "@/base/crypto/libsodium";
import log from "@/base/log";
import { wait } from "@/utils/promise";
-import {
- boxSealOpen,
- generateKeyPair,
-} from "@ente/shared/crypto/internal/libsodium";
import castGateway from "@ente/shared/network/cast";
export interface Registration {
diff --git a/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx
index f9d83bd099..75ec3b4626 100644
--- a/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx
@@ -1,3 +1,4 @@
+import { boxSeal } from "@/base/crypto/libsodium";
import log from "@/base/log";
import { VerticallyCentered } from "@ente/shared/components/Container";
import DialogBoxV2 from "@ente/shared/components/DialogBoxV2";
@@ -6,7 +7,6 @@ import EnteSpinner from "@ente/shared/components/EnteSpinner";
import SingleInputForm, {
type SingleInputFormProps,
} from "@ente/shared/components/SingleInputForm";
-import { boxSeal } from "@ente/shared/crypto/internal/libsodium";
import castGateway from "@ente/shared/network/cast";
import { Link, Typography } from "@mui/material";
import { t } from "i18next";
diff --git a/web/packages/accounts/api/user.ts b/web/packages/accounts/api/user.ts
index 9e22a5ab68..667eaf10c9 100644
--- a/web/packages/accounts/api/user.ts
+++ b/web/packages/accounts/api/user.ts
@@ -6,8 +6,8 @@ import type {
UserVerificationResponse,
} from "@/accounts/types/user";
import { appName } from "@/base/app";
+import type { B64EncryptionResult } from "@/base/crypto/libsodium";
import { apiURL } from "@/base/origins";
-import type { B64EncryptionResult } from "@ente/shared/crypto/internal/libsodium";
import { ApiError, CustomError } from "@ente/shared/error";
import HTTPService from "@ente/shared/network/HTTPService";
import { getToken } from "@ente/shared/storage/localStorage/helpers";
diff --git a/web/packages/accounts/pages/passkeys/finish.tsx b/web/packages/accounts/pages/passkeys/finish.tsx
index 1b73aca1d7..04c17803c1 100644
--- a/web/packages/accounts/pages/passkeys/finish.tsx
+++ b/web/packages/accounts/pages/passkeys/finish.tsx
@@ -1,8 +1,8 @@
+import { fromB64URLSafeNoPaddingString } from "@/base/crypto/libsodium";
import log from "@/base/log";
import { nullToUndefined } from "@/utils/transform";
import { VerticallyCentered } from "@ente/shared/components/Container";
import EnteSpinner from "@ente/shared/components/EnteSpinner";
-import { fromB64URLSafeNoPaddingString } from "@ente/shared/crypto/internal/libsodium";
import InMemoryStore, { MS_KEYS } from "@ente/shared/storage/InMemoryStore";
import {
LS_KEYS,