hash-instance.d.ts 529 B

123456789101112131415
  1. /// <reference types="node" />
  2. import { INativeReader } from './native';
  3. import { NodeHash } from '../node/hash-instance';
  4. /**
  5. * A Node.js crypto-like createHash method.
  6. */
  7. export declare const createHash: () => NodeHash<INativeReader>;
  8. /**
  9. * Construct a new Hasher for the keyed hash function.
  10. */
  11. export declare const createKeyed: (key: Buffer) => NodeHash<INativeReader>;
  12. /**
  13. * Construct a new Hasher for the key derivation function.
  14. */
  15. export declare const createDeriveKey: (context: string) => NodeHash<INativeReader>;