Extends
BaseCryptoClass
Constructors
new KeyDerivationContext()
new KeyDerivationContext(): KeyDerivationContext
Returns
KeyDerivationContextMethods
deriveBits()
deriveBits(length:Derive bits from the input keying material.number):Promise<ArrayBuffer>
Parameters
length
number
The length of the derived key in bytes.
Promise<ArrayBuffer> A promise that resolves to the derived key
as an ArrayBuffer.
Returns
Promise<ArrayBuffer>
deriveKey()
deriveKey(length:Derive a symmetric key from the input keying material.number):Promise<SymmetricKey>
Parameters
length
number
The length of the symmetric key in bytes.
Promise<SymmetricKey> A promise that resolves to the derived
symmetric key.
Returns
Promise<SymmetricKey>
