Interface NamedEncrypter<Asym>

Named public key or secret key encrypter.

interface NamedEncrypter<Asym extends boolean = any> {
    "[KeyKind]": If<Asym, "public", "secret", "public" | "secret">;
    llEncrypt: LLEncrypt;
    name: Name;
    spki?: "public" extends If<Asym, "public", "secret", "public" | "secret">
        ? Uint8Array<ArrayBufferLike>
        : never;
}

Type Parameters

  • Asym extends boolean = any

Hierarchy (View Summary)

Properties

"[KeyKind]": If<Asym, "public", "secret", "public" | "secret">
llEncrypt: LLEncrypt
name: Name
spki?: "public" extends If<Asym, "public", "secret", "public" | "secret">
    ? Uint8Array<ArrayBufferLike>
    : never