UNPKG

@li0ard/gost341194

Version:

GOST R 34.11-94 hash function in pure TypeScript

10 lines (9 loc) 440 B
import { type TArg, type TRet } from "@noble/hashes/utils.js"; /** * PBKDF2 implementation for GOST R 34.11-94 * @param password Password from which a derived key is generated * @param salt Salt * @param iterations Number of iterations (aka work factor) * @param dkLen Output length */ export declare const Gost341194PBKDF2: (password: TArg<Uint8Array>, salt: TArg<Uint8Array>, iterations: number, dkLen: number) => TRet<Uint8Array>;