Interface NamedEncrypter<Asym>

Named public key or secret key encrypter.

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

Type Parameters

  • Asym extends boolean = any

Hierarchy (view full)

Properties

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