mirror of
https://github.com/ente-io/ente.git
synced 2025-08-05 14:17:10 +00:00
Use
This commit is contained in:
parent
e36aad9f7c
commit
a59bb780ee
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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()
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user