Interface CryptoAlgorithm<I, Asym, G>

WebCrypto based algorithm implementation.

Type Parameters

  • I = any

  • Asym extends boolean = any

  • G = any

Hierarchy

Properties

cryptoGenerate: ((params, extractable) => Promise<If<Asym, GeneratedKeyPair<I>, GeneratedSecretKey<I>, never>>)

Type declaration

importSpki?: ((spki, der) => Promise<CryptoAlgorithm.PublicKey<I>>)

Type declaration

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

Type declaration

    uuid: string

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

    Generated using TypeDoc