MdecapsulateKey
Bun

method

crypto.webcrypto.SubtleCrypto.decapsulateKey

decapsulationAlgorithm: AlgorithmIdentifier,
decapsulationKey: CryptoKey,
ciphertext: BufferSource,
extractable: boolean,
usages: KeyUsage[]
): Promise<CryptoKey>;

Referenced types

interface CryptoKey

interface AesDerivedKeyParams

interface KmacImportParams

type KeyUsage = 'decapsulateBits' | 'decapsulateKey' | 'decrypt' | 'deriveBits' | 'deriveKey' | 'encapsulateBits' | 'encapsulateKey' | 'encrypt' | 'sign' | 'unwrapKey' | 'verify' | 'wrapKey'