File size: 933 Bytes
5641073
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* tslint:disable */
/* eslint-disable */
/**
* @param {Uint8Array} data
* @param {Uint8Array} out
*/
export function hash(data: Uint8Array, out: Uint8Array): void;
/**
* @returns {Blake3Hash}
*/
export function create_hasher(): Blake3Hash;
/**
* @param {Uint8Array} key_slice
* @returns {Blake3Hash}
*/
export function create_keyed(key_slice: Uint8Array): Blake3Hash;
/**
* @param {string} context
* @returns {Blake3Hash}
*/
export function create_derive(context: string): Blake3Hash;
/**
*/
export class Blake3Hash {
  free(): void;
/**
* @returns {HashReader}
*/
  reader(): HashReader;
/**
* @param {Uint8Array} input_bytes
*/
  update(input_bytes: Uint8Array): void;
/**
* @param {Uint8Array} out
*/
  digest(out: Uint8Array): void;
}
/**
*/
export class HashReader {
  free(): void;
/**
* @param {Uint8Array} bytes
*/
  fill(bytes: Uint8Array): void;
/**
* @param {BigInt} position
*/
  set_position(position: BigInt): void;
}