Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

  • format: KeyFormat
  • wrappedKey: BufferSource
  • wrappedKeyAlgorithm: EnforcedImportParams
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]

Returns Promise<CryptoKey>

wrapKey

Parameters

  • format: KeyFormat
  • key: CryptoKey

Returns Promise<ArrayBuffer>