Namespace kdf/shared. KdfShared
source · [−]Functions
sourcederiveBits
deriveBits
source(algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams, baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial, length: number): Promise<ArrayBuffer>
(algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams, baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial, length: number): Promise<ArrayBuffer>
Parameters
algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams
baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial
length: number
Returns Promise<ArrayBuffer>
sourcederiveKey
deriveKey
source(algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams, baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial, derivedKeyType: EnforcedHmacKeyGenParams | EnforcedAesKeyGenParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<AesCryptoKeys | HmacCryptoKey>
(algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams, baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial, derivedKeyType: EnforcedHmacKeyGenParams | EnforcedAesKeyGenParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<AesCryptoKeys | HmacCryptoKey>
Parameters
algorithm: EnforcedPbkdf2Params | EnforcedHkdfParams
baseKey: Pbkdf2KeyMaterial | HkdfKeyMaterial
derivedKeyType: EnforcedHmacKeyGenParams | EnforcedAesKeyGenParams
extractable: boolean = true
Optional keyUsages: KeyUsage[]