/** * hkdf.js */ import { HashTypes } from './params'; /** * Hash-based Key Derivation Function computing from given master secret and salt. * If salt is not given, salt would be automatically generated inside. * Specification is given in RFC5869 {@link https://tools.ietf.org/html/rfc5869}. * @param {Uint8Array} master - Master secret to derive the key. * @param {String} [hash='SHA-256] - Name of hash algorithm used to derive the key. * @param {Number} [length = 32] - Intended length of derived key. * @param {String} [info=''] - String for information field of HKDF. * @param {Uint8Array} [salt=null] - Byte array of salt. * @return {Promise<{key: Uint8Array, salt: Uint8Array}>} - Derived key and salt used to derive the key. */ export declare const compute: (master: Uint8Array, hash?: HashTypes, length?: number, info?: string, salt?: Uint8Array | null) => Promise<{ key: Uint8Array; salt: Uint8Array; }>;