- decrypt(
msg: Msg,
privateKey: CryptoKey,
publicKey: string | CryptoKey,
curve?: EccCurve,
opts?: Partial<
{
alg: "AES-CTR"
| "AES-CBC"
| "AES-GCM";
iv: ArrayBuffer;
length: SymmKeyLength;
},
>,
): Promise<string> Parameters
- msg: Msg
- privateKey: CryptoKey
- publicKey: string | CryptoKey
- curve: EccCurve = DEFAULT_ECC_CURVE
Optional
opts: Partial<
{
alg: "AES-CTR"
| "AES-CBC"
| "AES-GCM";
iv: ArrayBuffer;
length: SymmKeyLength;
},
>
Returns Promise<string>
Decrypt the given message