Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EncryptionAlgorithm<I, Asym, G>

WebCrypto based encryption algorithm implementation.

Type parameters

  • I = any

  • Asym: boolean = any

  • G = any

Hierarchy

Index

Properties

Readonly keyUsages

keyUsages: If<Asym, Record<"public" | "private", KeyUsage[]>, Record<"secret", KeyUsage[]>, {}>

makeLLDecrypt

makeLLDecrypt: If<Asym, (key: PrivateKey<I>) => LLDecrypt, (key: SecretKey<I>) => LLDecrypt, unknown>

makeLLEncrypt

makeLLEncrypt: If<Asym, (key: PublicKey<I>) => LLEncrypt, (key: SecretKey<I>) => LLEncrypt, unknown>

Readonly uuid

uuid: string

Identifies an algorithm in storage. This should be changed when the serialization format changes.

Methods

cryptoGenerate

Optional importSpki

  • importSpki(spki: Uint8Array, der: ElementBuffer): Promise<PublicKey<I>>

Generated using TypeDoc