import { HashAlgorithm } from '@ibgib/helper-gib/dist/helpers/utils-helper.mjs'; import { DeriveKeyParams } from './kdf-types.mjs'; /** * Derive a key from a master secret using the specified KDF strategy * * This is the main dispatch function for all KDF operations. It routes to the * appropriate strategy implementation based on `kdfOpts.strategy`. * * @param params - Derivation parameters including master secret and KDF options * @returns Derived key * * @example * ```typescript * const derivedKey = await deriveKey({ * masterSecret: 'my-strong-password', * kdfOpts: { * strategy: KdfStrategy.recursiveSaltWrap, * salt: 'pool-identifier', * rounds: 10000, * algorithm: 'SHA-256' * } * }); * ``` */ export declare function deriveKey({ masterSecret, kdfOpts }: DeriveKeyParams): Promise; /** * Recursive Salt Wrap KDF Strategy * * Derives a key by recursively applying: Hash(salt + current + salt) for N rounds * * This is the strategy used by KeystoneStrategy_HashRevealV1 for deriving pool secrets. * * @param masterSecret - The initial secret/password to derive from * @param salt - Salt value to wrap around the secret * @param rounds - Number of hash iterations (key stretching) * @param algorithm - Hash algorithm to use (default: SHA-256) * @returns Derived key */ export declare function kdf_recursiveSaltWrap({ masterSecret, salt, rounds, algorithm, }: { masterSecret: string; salt: string; rounds: number; algorithm?: HashAlgorithm; }): Promise; //# sourceMappingURL=kdf-helpers.d.mts.map