| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 | 
							- import { Input, Hash, HashXOF } from './utils.js';
 
- import { Keccak, ShakeOpts } from './sha3.js';
 
- export type cShakeOpts = ShakeOpts & {
 
-     personalization?: Input;
 
-     NISTfn?: Input;
 
- };
 
- export declare const cshake128: {
 
-     (msg: Input, opts?: cShakeOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: cShakeOpts): HashXOF<Keccak>;
 
- };
 
- export declare const cshake256: {
 
-     (msg: Input, opts?: cShakeOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: cShakeOpts): HashXOF<Keccak>;
 
- };
 
- declare class KMAC extends Keccak implements HashXOF<KMAC> {
 
-     constructor(blockLen: number, outputLen: number, enableXOF: boolean, key: Input, opts?: cShakeOpts);
 
-     protected finish(): void;
 
-     _cloneInto(to?: KMAC): KMAC;
 
-     clone(): KMAC;
 
- }
 
- export declare const kmac128: {
 
-     (key: Input, message: Input, opts?: cShakeOpts): Uint8Array;
 
-     create(key: Input, opts?: cShakeOpts): KMAC;
 
- };
 
- export declare const kmac256: {
 
-     (key: Input, message: Input, opts?: cShakeOpts): Uint8Array;
 
-     create(key: Input, opts?: cShakeOpts): KMAC;
 
- };
 
- export declare const kmac128xof: {
 
-     (key: Input, message: Input, opts?: cShakeOpts): Uint8Array;
 
-     create(key: Input, opts?: cShakeOpts): KMAC;
 
- };
 
- export declare const kmac256xof: {
 
-     (key: Input, message: Input, opts?: cShakeOpts): Uint8Array;
 
-     create(key: Input, opts?: cShakeOpts): KMAC;
 
- };
 
- declare class TupleHash extends Keccak implements HashXOF<TupleHash> {
 
-     constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts?: cShakeOpts);
 
-     protected finish(): void;
 
-     _cloneInto(to?: TupleHash): TupleHash;
 
-     clone(): TupleHash;
 
- }
 
- export declare const tuplehash128: {
 
-     (messages: Input[], opts?: cShakeOpts): Uint8Array;
 
-     create(opts?: cShakeOpts): TupleHash;
 
- };
 
- export declare const tuplehash256: {
 
-     (messages: Input[], opts?: cShakeOpts): Uint8Array;
 
-     create(opts?: cShakeOpts): TupleHash;
 
- };
 
- export declare const tuplehash128xof: {
 
-     (messages: Input[], opts?: cShakeOpts): Uint8Array;
 
-     create(opts?: cShakeOpts): TupleHash;
 
- };
 
- export declare const tuplehash256xof: {
 
-     (messages: Input[], opts?: cShakeOpts): Uint8Array;
 
-     create(opts?: cShakeOpts): TupleHash;
 
- };
 
- type ParallelOpts = cShakeOpts & {
 
-     blockLen?: number;
 
- };
 
- declare class ParallelHash extends Keccak implements HashXOF<ParallelHash> {
 
-     protected leafCons: () => Hash<Keccak>;
 
-     private leafHash?;
 
-     private chunkPos;
 
-     private chunksDone;
 
-     private chunkLen;
 
-     constructor(blockLen: number, outputLen: number, leafCons: () => Hash<Keccak>, enableXOF: boolean, opts?: ParallelOpts);
 
-     protected finish(): void;
 
-     _cloneInto(to?: ParallelHash): ParallelHash;
 
-     destroy(): void;
 
-     clone(): ParallelHash;
 
- }
 
- export declare const parallelhash128: {
 
-     (message: Input, opts?: ParallelOpts): Uint8Array;
 
-     create(opts?: ParallelOpts): ParallelHash;
 
- };
 
- export declare const parallelhash256: {
 
-     (message: Input, opts?: ParallelOpts): Uint8Array;
 
-     create(opts?: ParallelOpts): ParallelHash;
 
- };
 
- export declare const parallelhash128xof: {
 
-     (message: Input, opts?: ParallelOpts): Uint8Array;
 
-     create(opts?: ParallelOpts): ParallelHash;
 
- };
 
- export declare const parallelhash256xof: {
 
-     (message: Input, opts?: ParallelOpts): Uint8Array;
 
-     create(opts?: ParallelOpts): ParallelHash;
 
- };
 
- export type TurboshakeOpts = ShakeOpts & {
 
-     D?: number;
 
- };
 
- export declare const turboshake128: {
 
-     (msg: Input, opts?: TurboshakeOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: TurboshakeOpts): HashXOF<HashXOF<Keccak>>;
 
- };
 
- export declare const turboshake256: {
 
-     (msg: Input, opts?: TurboshakeOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: TurboshakeOpts): HashXOF<HashXOF<Keccak>>;
 
- };
 
- export type KangarooOpts = {
 
-     dkLen?: number;
 
-     personalization?: Input;
 
- };
 
- declare class KangarooTwelve extends Keccak implements HashXOF<KangarooTwelve> {
 
-     protected leafLen: number;
 
-     readonly chunkLen = 8192;
 
-     private leafHash?;
 
-     private personalization;
 
-     private chunkPos;
 
-     private chunksDone;
 
-     constructor(blockLen: number, leafLen: number, outputLen: number, rounds: number, opts: KangarooOpts);
 
-     update(data: Input): this;
 
-     protected finish(): void;
 
-     destroy(): void;
 
-     _cloneInto(to?: KangarooTwelve): KangarooTwelve;
 
-     clone(): KangarooTwelve;
 
- }
 
- export declare const k12: {
 
-     (msg: Input, opts?: KangarooOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: KangarooOpts): Hash<KangarooTwelve>;
 
- };
 
- export declare const m14: {
 
-     (msg: Input, opts?: KangarooOpts | undefined): Uint8Array;
 
-     outputLen: number;
 
-     blockLen: number;
 
-     create(opts: KangarooOpts): Hash<KangarooTwelve>;
 
- };
 
- declare class KeccakPRG extends Keccak {
 
-     protected rate: number;
 
-     constructor(capacity: number);
 
-     keccak(): void;
 
-     update(data: Input): this;
 
-     feed(data: Input): this;
 
-     protected finish(): void;
 
-     digestInto(_out: Uint8Array): Uint8Array;
 
-     fetch(bytes: number): Uint8Array;
 
-     forget(): void;
 
-     _cloneInto(to?: KeccakPRG): KeccakPRG;
 
-     clone(): KeccakPRG;
 
- }
 
- export declare const keccakprg: (capacity?: number) => KeccakPRG;
 
- export {};
 
- //# sourceMappingURL=sha3-addons.d.ts.map
 
 
  |