@bicycle-codes/crypto-util
    Preparing search index...

    Function decrypt

    • Decrypt the given message

      Parameters

      • msg: Msg
      • privateKey: CryptoKey
      • publicKey: string | CryptoKey
      • curve: EccCurve = DEFAULT_ECC_CURVE
      • Optionalopts: Partial<
            {
                alg: "AES-CTR"
                | "AES-CBC"
                | "AES-GCM";
                iv: ArrayBuffer;
                length: SymmKeyLength;
            },
        >

      Returns Promise<string>