Update docs
This commit is contained in:
@@ -193,7 +193,8 @@ export const encryptMetadataJSON = async (r: {
|
||||
: sharedCryptoWorker().then((w) => w.encryptMetadataJSON(r));
|
||||
|
||||
/**
|
||||
* Decrypt a box encrypted using {@link encryptBoxB64}.
|
||||
* Decrypt a box encrypted using {@link encryptBoxB64} and returns the decrypted
|
||||
* bytes.
|
||||
*/
|
||||
export const decryptBox = (box: EncryptedBox, key: BytesOrB64) =>
|
||||
inWorker()
|
||||
|
||||
@@ -390,7 +390,7 @@ export async function encryptFileChunk(
|
||||
}
|
||||
|
||||
/**
|
||||
* Decrypt the result of {@link encryptBoxB64}.
|
||||
* Decrypt the result of {@link encryptBoxB64} and return the decrypted bytes.
|
||||
*/
|
||||
export const decryptBox = async (
|
||||
{ encryptedData, nonce }: EncryptedBox,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { decryptBox } from "./crypto";
|
||||
import { toB64 } from "./crypto/libsodium";
|
||||
|
||||
/**
|
||||
* Return the user's master key (as a base64 string) from session storage.
|
||||
* Return the user's master key from session storage.
|
||||
*
|
||||
* Precondition: The user should be logged in.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user