This commit is contained in:
Manav Rathi 2024-11-26 07:29:06 +05:30
parent e36aad9f7c
commit a59bb780ee
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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()

View File

@ -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.