libsodium-wrappers-sumo 0.7.16 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,573 @@
1
+ // TypeScript definitions for libsodium-wrappers-sumo
2
+ // Auto-generated - do not edit manually
3
+
4
+ /**
5
+ * Promise that resolves when the library is ready to use.
6
+ * All crypto operations must wait for this promise to resolve.
7
+ */
8
+ export const ready: Promise<void>;
9
+
10
+ export type StateAddress = {
11
+ name: string;
12
+ address: number;
13
+ };
14
+
15
+ export const base64_variants: {
16
+ ORIGINAL: number;
17
+ ORIGINAL_NO_PADDING: number;
18
+ URLSAFE: number;
19
+ URLSAFE_NO_PADDING: number;
20
+ };
21
+
22
+ export type base64_variants = number;
23
+
24
+ export const output_formats: string[];
25
+
26
+ export function from_base64(input: string, variant?: base64_variants): Uint8Array;
27
+ export function to_base64(input: Uint8Array | string, variant?: base64_variants): string;
28
+ export function from_hex(input: string): Uint8Array;
29
+ export function to_hex(input: Uint8Array | string): string;
30
+ export function from_string(input: string): Uint8Array;
31
+ export function to_string(input: Uint8Array): string;
32
+ export function pad(buf: Uint8Array, blocksize: number): Uint8Array;
33
+ export function unpad(buf: Uint8Array, blocksize: number): Uint8Array;
34
+ export function memcmp(b1: Uint8Array, b2: Uint8Array): boolean;
35
+ export function memzero(bytes: Uint8Array): void;
36
+ export function increment(bytes: Uint8Array): void;
37
+ export function add(a: Uint8Array, b: Uint8Array): void;
38
+ export function compare(b1: Uint8Array, b2: Uint8Array): number;
39
+ export function is_zero(bytes: Uint8Array): boolean;
40
+
41
+ // Constants
42
+ export const SODIUM_LIBRARY_VERSION_MAJOR: number;
43
+ export const SODIUM_LIBRARY_VERSION_MINOR: number;
44
+ export const SODIUM_VERSION_STRING: string;
45
+ export const crypto_aead_aegis128l_ABYTES: number;
46
+ export const crypto_aead_aegis128l_KEYBYTES: number;
47
+ export const crypto_aead_aegis128l_MESSAGEBYTES_MAX: number;
48
+ export const crypto_aead_aegis128l_NPUBBYTES: number;
49
+ export const crypto_aead_aegis128l_NSECBYTES: number;
50
+ export const crypto_aead_aegis256_ABYTES: number;
51
+ export const crypto_aead_aegis256_KEYBYTES: number;
52
+ export const crypto_aead_aegis256_MESSAGEBYTES_MAX: number;
53
+ export const crypto_aead_aegis256_NPUBBYTES: number;
54
+ export const crypto_aead_aegis256_NSECBYTES: number;
55
+ export const crypto_aead_aes256gcm_ABYTES: number;
56
+ export const crypto_aead_aes256gcm_KEYBYTES: number;
57
+ export const crypto_aead_aes256gcm_MESSAGEBYTES_MAX: number;
58
+ export const crypto_aead_aes256gcm_NPUBBYTES: number;
59
+ export const crypto_aead_aes256gcm_NSECBYTES: number;
60
+ export const crypto_aead_chacha20poly1305_ABYTES: number;
61
+ export const crypto_aead_chacha20poly1305_IETF_ABYTES: number;
62
+ export const crypto_aead_chacha20poly1305_IETF_KEYBYTES: number;
63
+ export const crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
64
+ export const crypto_aead_chacha20poly1305_IETF_NPUBBYTES: number;
65
+ export const crypto_aead_chacha20poly1305_IETF_NSECBYTES: number;
66
+ export const crypto_aead_chacha20poly1305_KEYBYTES: number;
67
+ export const crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX: number;
68
+ export const crypto_aead_chacha20poly1305_NPUBBYTES: number;
69
+ export const crypto_aead_chacha20poly1305_NSECBYTES: number;
70
+ export const crypto_aead_chacha20poly1305_ietf_ABYTES: number;
71
+ export const crypto_aead_chacha20poly1305_ietf_KEYBYTES: number;
72
+ export const crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
73
+ export const crypto_aead_chacha20poly1305_ietf_NPUBBYTES: number;
74
+ export const crypto_aead_chacha20poly1305_ietf_NSECBYTES: number;
75
+ export const crypto_aead_xchacha20poly1305_IETF_ABYTES: number;
76
+ export const crypto_aead_xchacha20poly1305_IETF_KEYBYTES: number;
77
+ export const crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
78
+ export const crypto_aead_xchacha20poly1305_IETF_NPUBBYTES: number;
79
+ export const crypto_aead_xchacha20poly1305_IETF_NSECBYTES: number;
80
+ export const crypto_aead_xchacha20poly1305_ietf_ABYTES: number;
81
+ export const crypto_aead_xchacha20poly1305_ietf_KEYBYTES: number;
82
+ export const crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
83
+ export const crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: number;
84
+ export const crypto_aead_xchacha20poly1305_ietf_NSECBYTES: number;
85
+ export const crypto_auth_BYTES: number;
86
+ export const crypto_auth_KEYBYTES: number;
87
+ export const crypto_auth_hmacsha256_BYTES: number;
88
+ export const crypto_auth_hmacsha256_KEYBYTES: number;
89
+ export const crypto_auth_hmacsha512256_BYTES: number;
90
+ export const crypto_auth_hmacsha512256_KEYBYTES: number;
91
+ export const crypto_auth_hmacsha512_BYTES: number;
92
+ export const crypto_auth_hmacsha512_KEYBYTES: number;
93
+ export const crypto_box_BEFORENMBYTES: number;
94
+ export const crypto_box_MACBYTES: number;
95
+ export const crypto_box_MESSAGEBYTES_MAX: number;
96
+ export const crypto_box_NONCEBYTES: number;
97
+ export const crypto_box_PUBLICKEYBYTES: number;
98
+ export const crypto_box_SEALBYTES: number;
99
+ export const crypto_box_SECRETKEYBYTES: number;
100
+ export const crypto_box_SEEDBYTES: number;
101
+ export const crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES: number;
102
+ export const crypto_box_curve25519xchacha20poly1305_MACBYTES: number;
103
+ export const crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX: number;
104
+ export const crypto_box_curve25519xchacha20poly1305_NONCEBYTES: number;
105
+ export const crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES: number;
106
+ export const crypto_box_curve25519xchacha20poly1305_SEALBYTES: number;
107
+ export const crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES: number;
108
+ export const crypto_box_curve25519xchacha20poly1305_SEEDBYTES: number;
109
+ export const crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES: number;
110
+ export const crypto_box_curve25519xsalsa20poly1305_MACBYTES: number;
111
+ export const crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX: number;
112
+ export const crypto_box_curve25519xsalsa20poly1305_NONCEBYTES: number;
113
+ export const crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES: number;
114
+ export const crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES: number;
115
+ export const crypto_box_curve25519xsalsa20poly1305_SEEDBYTES: number;
116
+ export const crypto_core_ed25519_BYTES: number;
117
+ export const crypto_core_ed25519_HASHBYTES: number;
118
+ export const crypto_core_ed25519_NONREDUCEDSCALARBYTES: number;
119
+ export const crypto_core_ed25519_SCALARBYTES: number;
120
+ export const crypto_core_ed25519_UNIFORMBYTES: number;
121
+ export const crypto_core_hchacha20_CONSTBYTES: number;
122
+ export const crypto_core_hchacha20_INPUTBYTES: number;
123
+ export const crypto_core_hchacha20_KEYBYTES: number;
124
+ export const crypto_core_hchacha20_OUTPUTBYTES: number;
125
+ export const crypto_core_hsalsa20_CONSTBYTES: number;
126
+ export const crypto_core_hsalsa20_INPUTBYTES: number;
127
+ export const crypto_core_hsalsa20_KEYBYTES: number;
128
+ export const crypto_core_hsalsa20_OUTPUTBYTES: number;
129
+ export const crypto_core_ristretto255_BYTES: number;
130
+ export const crypto_core_ristretto255_HASHBYTES: number;
131
+ export const crypto_core_ristretto255_NONREDUCEDSCALARBYTES: number;
132
+ export const crypto_core_ristretto255_SCALARBYTES: number;
133
+ export const crypto_core_salsa2012_CONSTBYTES: number;
134
+ export const crypto_core_salsa2012_INPUTBYTES: number;
135
+ export const crypto_core_salsa2012_KEYBYTES: number;
136
+ export const crypto_core_salsa2012_OUTPUTBYTES: number;
137
+ export const crypto_core_salsa208_CONSTBYTES: number;
138
+ export const crypto_core_salsa208_INPUTBYTES: number;
139
+ export const crypto_core_salsa208_KEYBYTES: number;
140
+ export const crypto_core_salsa208_OUTPUTBYTES: number;
141
+ export const crypto_core_salsa20_CONSTBYTES: number;
142
+ export const crypto_core_salsa20_INPUTBYTES: number;
143
+ export const crypto_core_salsa20_KEYBYTES: number;
144
+ export const crypto_core_salsa20_OUTPUTBYTES: number;
145
+ export const crypto_generichash_BYTES: number;
146
+ export const crypto_generichash_BYTES_MAX: number;
147
+ export const crypto_generichash_BYTES_MIN: number;
148
+ export const crypto_generichash_KEYBYTES: number;
149
+ export const crypto_generichash_KEYBYTES_MAX: number;
150
+ export const crypto_generichash_KEYBYTES_MIN: number;
151
+ export const crypto_generichash_blake2b_BYTES: number;
152
+ export const crypto_generichash_blake2b_BYTES_MAX: number;
153
+ export const crypto_generichash_blake2b_BYTES_MIN: number;
154
+ export const crypto_generichash_blake2b_KEYBYTES: number;
155
+ export const crypto_generichash_blake2b_KEYBYTES_MAX: number;
156
+ export const crypto_generichash_blake2b_KEYBYTES_MIN: number;
157
+ export const crypto_generichash_blake2b_PERSONALBYTES: number;
158
+ export const crypto_generichash_blake2b_SALTBYTES: number;
159
+ export const crypto_hash_BYTES: number;
160
+ export const crypto_hash_sha256_BYTES: number;
161
+ export const crypto_hash_sha512_BYTES: number;
162
+ export const crypto_ipcrypt_BYTES: number;
163
+ export const crypto_ipcrypt_KEYBYTES: number;
164
+ export const crypto_ipcrypt_ND_INPUTBYTES: number;
165
+ export const crypto_ipcrypt_ND_KEYBYTES: number;
166
+ export const crypto_ipcrypt_ND_OUTPUTBYTES: number;
167
+ export const crypto_ipcrypt_ND_TWEAKBYTES: number;
168
+ export const crypto_ipcrypt_NDX_INPUTBYTES: number;
169
+ export const crypto_ipcrypt_NDX_KEYBYTES: number;
170
+ export const crypto_ipcrypt_NDX_OUTPUTBYTES: number;
171
+ export const crypto_ipcrypt_NDX_TWEAKBYTES: number;
172
+ export const crypto_ipcrypt_PFX_BYTES: number;
173
+ export const crypto_ipcrypt_PFX_KEYBYTES: number;
174
+ export const crypto_kdf_BYTES_MAX: number;
175
+ export const crypto_kdf_BYTES_MIN: number;
176
+ export const crypto_kdf_CONTEXTBYTES: number;
177
+ export const crypto_kdf_KEYBYTES: number;
178
+ export const crypto_kdf_blake2b_BYTES_MAX: number;
179
+ export const crypto_kdf_blake2b_BYTES_MIN: number;
180
+ export const crypto_kdf_blake2b_CONTEXTBYTES: number;
181
+ export const crypto_kdf_blake2b_KEYBYTES: number;
182
+ export const crypto_kdf_hkdf_sha256_BYTES_MAX: number;
183
+ export const crypto_kdf_hkdf_sha256_BYTES_MIN: number;
184
+ export const crypto_kdf_hkdf_sha256_KEYBYTES: number;
185
+ export const crypto_kdf_hkdf_sha512_BYTES_MAX: number;
186
+ export const crypto_kdf_hkdf_sha512_BYTES_MIN: number;
187
+ export const crypto_kdf_hkdf_sha512_KEYBYTES: number;
188
+ export const crypto_kx_PUBLICKEYBYTES: number;
189
+ export const crypto_kx_SECRETKEYBYTES: number;
190
+ export const crypto_kx_SEEDBYTES: number;
191
+ export const crypto_kx_SESSIONKEYBYTES: number;
192
+ export const crypto_onetimeauth_BYTES: number;
193
+ export const crypto_onetimeauth_KEYBYTES: number;
194
+ export const crypto_onetimeauth_poly1305_BYTES: number;
195
+ export const crypto_onetimeauth_poly1305_KEYBYTES: number;
196
+ export const crypto_pwhash_ALG_ARGON2I13: number;
197
+ export const crypto_pwhash_ALG_ARGON2ID13: number;
198
+ export const crypto_pwhash_ALG_DEFAULT: number;
199
+ export const crypto_pwhash_BYTES_MAX: number;
200
+ export const crypto_pwhash_BYTES_MIN: number;
201
+ export const crypto_pwhash_MEMLIMIT_INTERACTIVE: number;
202
+ export const crypto_pwhash_MEMLIMIT_MAX: number;
203
+ export const crypto_pwhash_MEMLIMIT_MIN: number;
204
+ export const crypto_pwhash_MEMLIMIT_MODERATE: number;
205
+ export const crypto_pwhash_MEMLIMIT_SENSITIVE: number;
206
+ export const crypto_pwhash_OPSLIMIT_INTERACTIVE: number;
207
+ export const crypto_pwhash_OPSLIMIT_MAX: number;
208
+ export const crypto_pwhash_OPSLIMIT_MIN: number;
209
+ export const crypto_pwhash_OPSLIMIT_MODERATE: number;
210
+ export const crypto_pwhash_OPSLIMIT_SENSITIVE: number;
211
+ export const crypto_pwhash_PASSWD_MAX: number;
212
+ export const crypto_pwhash_PASSWD_MIN: number;
213
+ export const crypto_pwhash_SALTBYTES: number;
214
+ export const crypto_pwhash_STRBYTES: number;
215
+ export const crypto_pwhash_STRPREFIX: string;
216
+ export const crypto_pwhash_argon2i_BYTES_MAX: number;
217
+ export const crypto_pwhash_argon2i_BYTES_MIN: number;
218
+ export const crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE: number;
219
+ export const crypto_pwhash_argon2i_MEMLIMIT_MAX: number;
220
+ export const crypto_pwhash_argon2i_MEMLIMIT_MIN: number;
221
+ export const crypto_pwhash_argon2i_MEMLIMIT_MODERATE: number;
222
+ export const crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE: number;
223
+ export const crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE: number;
224
+ export const crypto_pwhash_argon2i_OPSLIMIT_MAX: number;
225
+ export const crypto_pwhash_argon2i_OPSLIMIT_MIN: number;
226
+ export const crypto_pwhash_argon2i_OPSLIMIT_MODERATE: number;
227
+ export const crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE: number;
228
+ export const crypto_pwhash_argon2i_PASSWD_MAX: number;
229
+ export const crypto_pwhash_argon2i_PASSWD_MIN: number;
230
+ export const crypto_pwhash_argon2i_SALTBYTES: number;
231
+ export const crypto_pwhash_argon2i_STRBYTES: number;
232
+ export const crypto_pwhash_argon2i_STRPREFIX: string;
233
+ export const crypto_pwhash_argon2id_BYTES_MAX: number;
234
+ export const crypto_pwhash_argon2id_BYTES_MIN: number;
235
+ export const crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE: number;
236
+ export const crypto_pwhash_argon2id_MEMLIMIT_MAX: number;
237
+ export const crypto_pwhash_argon2id_MEMLIMIT_MIN: number;
238
+ export const crypto_pwhash_argon2id_MEMLIMIT_MODERATE: number;
239
+ export const crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE: number;
240
+ export const crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE: number;
241
+ export const crypto_pwhash_argon2id_OPSLIMIT_MAX: number;
242
+ export const crypto_pwhash_argon2id_OPSLIMIT_MIN: number;
243
+ export const crypto_pwhash_argon2id_OPSLIMIT_MODERATE: number;
244
+ export const crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE: number;
245
+ export const crypto_pwhash_argon2id_PASSWD_MAX: number;
246
+ export const crypto_pwhash_argon2id_PASSWD_MIN: number;
247
+ export const crypto_pwhash_argon2id_SALTBYTES: number;
248
+ export const crypto_pwhash_argon2id_STRBYTES: number;
249
+ export const crypto_pwhash_argon2id_STRPREFIX: string;
250
+ export const crypto_pwhash_scryptsalsa208sha256_BYTES_MAX: number;
251
+ export const crypto_pwhash_scryptsalsa208sha256_BYTES_MIN: number;
252
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: number;
253
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX: number;
254
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN: number;
255
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: number;
256
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: number;
257
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX: number;
258
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN: number;
259
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: number;
260
+ export const crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX: number;
261
+ export const crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN: number;
262
+ export const crypto_pwhash_scryptsalsa208sha256_SALTBYTES: number;
263
+ export const crypto_pwhash_scryptsalsa208sha256_STRBYTES: number;
264
+ export const crypto_pwhash_scryptsalsa208sha256_STRPREFIX: string;
265
+ export const crypto_scalarmult_BYTES: number;
266
+ export const crypto_scalarmult_SCALARBYTES: number;
267
+ export const crypto_scalarmult_curve25519_BYTES: number;
268
+ export const crypto_scalarmult_curve25519_SCALARBYTES: number;
269
+ export const crypto_scalarmult_ed25519_BYTES: number;
270
+ export const crypto_scalarmult_ed25519_SCALARBYTES: number;
271
+ export const crypto_scalarmult_ristretto255_BYTES: number;
272
+ export const crypto_scalarmult_ristretto255_SCALARBYTES: number;
273
+ export const crypto_secretbox_KEYBYTES: number;
274
+ export const crypto_secretbox_MACBYTES: number;
275
+ export const crypto_secretbox_MESSAGEBYTES_MAX: number;
276
+ export const crypto_secretbox_NONCEBYTES: number;
277
+ export const crypto_secretbox_xchacha20poly1305_KEYBYTES: number;
278
+ export const crypto_secretbox_xchacha20poly1305_MACBYTES: number;
279
+ export const crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX: number;
280
+ export const crypto_secretbox_xchacha20poly1305_NONCEBYTES: number;
281
+ export const crypto_secretbox_xsalsa20poly1305_KEYBYTES: number;
282
+ export const crypto_secretbox_xsalsa20poly1305_MACBYTES: number;
283
+ export const crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX: number;
284
+ export const crypto_secretbox_xsalsa20poly1305_NONCEBYTES: number;
285
+ export const crypto_secretstream_xchacha20poly1305_ABYTES: number;
286
+ export const crypto_secretstream_xchacha20poly1305_HEADERBYTES: number;
287
+ export const crypto_secretstream_xchacha20poly1305_KEYBYTES: number;
288
+ export const crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX: number;
289
+ export const crypto_secretstream_xchacha20poly1305_TAG_FINAL: number;
290
+ export const crypto_secretstream_xchacha20poly1305_TAG_MESSAGE: number;
291
+ export const crypto_secretstream_xchacha20poly1305_TAG_PUSH: number;
292
+ export const crypto_secretstream_xchacha20poly1305_TAG_REKEY: number;
293
+ export const crypto_shorthash_BYTES: number;
294
+ export const crypto_shorthash_KEYBYTES: number;
295
+ export const crypto_shorthash_siphash24_BYTES: number;
296
+ export const crypto_shorthash_siphash24_KEYBYTES: number;
297
+ export const crypto_shorthash_siphashx24_BYTES: number;
298
+ export const crypto_shorthash_siphashx24_KEYBYTES: number;
299
+ export const crypto_sign_BYTES: number;
300
+ export const crypto_sign_MESSAGEBYTES_MAX: number;
301
+ export const crypto_sign_PUBLICKEYBYTES: number;
302
+ export const crypto_sign_SECRETKEYBYTES: number;
303
+ export const crypto_sign_SEEDBYTES: number;
304
+ export const crypto_sign_ed25519_BYTES: number;
305
+ export const crypto_sign_ed25519_MESSAGEBYTES_MAX: number;
306
+ export const crypto_sign_ed25519_PUBLICKEYBYTES: number;
307
+ export const crypto_sign_ed25519_SECRETKEYBYTES: number;
308
+ export const crypto_sign_ed25519_SEEDBYTES: number;
309
+ export const crypto_stream_KEYBYTES: number;
310
+ export const crypto_stream_MESSAGEBYTES_MAX: number;
311
+ export const crypto_stream_NONCEBYTES: number;
312
+ export const crypto_stream_chacha20_IETF_KEYBYTES: number;
313
+ export const crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX: number;
314
+ export const crypto_stream_chacha20_IETF_NONCEBYTES: number;
315
+ export const crypto_stream_chacha20_KEYBYTES: number;
316
+ export const crypto_stream_chacha20_MESSAGEBYTES_MAX: number;
317
+ export const crypto_stream_chacha20_NONCEBYTES: number;
318
+ export const crypto_stream_chacha20_ietf_KEYBYTES: number;
319
+ export const crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX: number;
320
+ export const crypto_stream_chacha20_ietf_NONCEBYTES: number;
321
+ export const crypto_stream_salsa2012_KEYBYTES: number;
322
+ export const crypto_stream_salsa2012_MESSAGEBYTES_MAX: number;
323
+ export const crypto_stream_salsa2012_NONCEBYTES: number;
324
+ export const crypto_stream_salsa208_KEYBYTES: number;
325
+ export const crypto_stream_salsa208_MESSAGEBYTES_MAX: number;
326
+ export const crypto_stream_salsa208_NONCEBYTES: number;
327
+ export const crypto_stream_salsa20_KEYBYTES: number;
328
+ export const crypto_stream_salsa20_MESSAGEBYTES_MAX: number;
329
+ export const crypto_stream_salsa20_NONCEBYTES: number;
330
+ export const crypto_stream_xchacha20_KEYBYTES: number;
331
+ export const crypto_stream_xchacha20_MESSAGEBYTES_MAX: number;
332
+ export const crypto_stream_xchacha20_NONCEBYTES: number;
333
+ export const crypto_stream_xsalsa20_KEYBYTES: number;
334
+ export const crypto_stream_xsalsa20_MESSAGEBYTES_MAX: number;
335
+ export const crypto_stream_xsalsa20_NONCEBYTES: number;
336
+ export const crypto_xof_shake128_BLOCKBYTES: number;
337
+ export const crypto_xof_shake128_STATEBYTES: number;
338
+ export const crypto_xof_shake256_BLOCKBYTES: number;
339
+ export const crypto_xof_shake256_STATEBYTES: number;
340
+ export const crypto_xof_turboshake128_BLOCKBYTES: number;
341
+ export const crypto_xof_turboshake128_STATEBYTES: number;
342
+ export const crypto_xof_turboshake256_BLOCKBYTES: number;
343
+ export const crypto_xof_turboshake256_STATEBYTES: number;
344
+ export const crypto_verify_16_BYTES: number;
345
+ export const crypto_verify_32_BYTES: number;
346
+ export const crypto_verify_64_BYTES: number;
347
+
348
+ // Crypto functions
349
+ export function crypto_aead_aegis128l_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
350
+ export function crypto_aead_aegis128l_decrypt_detached(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array | string, mac: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
351
+ export function crypto_aead_aegis128l_encrypt(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
352
+ export function crypto_aead_aegis128l_encrypt_detached(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
353
+ export function crypto_aead_aegis128l_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
354
+ export function crypto_aead_aegis256_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
355
+ export function crypto_aead_aegis256_decrypt_detached(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array | string, mac: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
356
+ export function crypto_aead_aegis256_encrypt(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
357
+ export function crypto_aead_aegis256_encrypt_detached(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
358
+ export function crypto_aead_aegis256_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
359
+ export function crypto_aead_chacha20poly1305_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
360
+ export function crypto_aead_chacha20poly1305_decrypt_detached(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array | string, mac: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
361
+ export function crypto_aead_chacha20poly1305_encrypt(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
362
+ export function crypto_aead_chacha20poly1305_encrypt_detached(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
363
+ export function crypto_aead_chacha20poly1305_ietf_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
364
+ export function crypto_aead_chacha20poly1305_ietf_decrypt_detached(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array | string, mac: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
365
+ export function crypto_aead_chacha20poly1305_ietf_encrypt(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
366
+ export function crypto_aead_chacha20poly1305_ietf_encrypt_detached(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
367
+ export function crypto_aead_chacha20poly1305_ietf_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
368
+ export function crypto_aead_chacha20poly1305_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
369
+ export function crypto_aead_xchacha20poly1305_ietf_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
370
+ export function crypto_aead_xchacha20poly1305_ietf_decrypt_detached(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array | string, mac: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
371
+ export function crypto_aead_xchacha20poly1305_ietf_encrypt(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
372
+ export function crypto_aead_xchacha20poly1305_ietf_encrypt_detached(message: Uint8Array | string, additional_data: Uint8Array | string | null, secret_nonce: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
373
+ export function crypto_aead_xchacha20poly1305_ietf_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
374
+ export function crypto_auth(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
375
+ export function crypto_auth_hmacsha256(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
376
+ export function crypto_auth_hmacsha256_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
377
+ export function crypto_auth_hmacsha256_init(key: Uint8Array | string | null): StateAddress;
378
+ export function crypto_auth_hmacsha256_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
379
+ export function crypto_auth_hmacsha256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
380
+ export function crypto_auth_hmacsha256_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
381
+ export function crypto_auth_hmacsha512(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
382
+ export function crypto_auth_hmacsha512256(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
383
+ export function crypto_auth_hmacsha512256_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
384
+ export function crypto_auth_hmacsha512256_init(key: Uint8Array | string | null): StateAddress;
385
+ export function crypto_auth_hmacsha512256_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
386
+ export function crypto_auth_hmacsha512256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
387
+ export function crypto_auth_hmacsha512256_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
388
+ export function crypto_auth_hmacsha512_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
389
+ export function crypto_auth_hmacsha512_init(key: Uint8Array | string | null): StateAddress;
390
+ export function crypto_auth_hmacsha512_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
391
+ export function crypto_auth_hmacsha512_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
392
+ export function crypto_auth_hmacsha512_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
393
+ export function crypto_auth_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
394
+ export function crypto_auth_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
395
+ export function crypto_box_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
396
+ export function crypto_box_curve25519xchacha20poly1305_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
397
+ export function crypto_box_curve25519xchacha20poly1305_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
398
+ export function crypto_box_curve25519xchacha20poly1305_detached_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
399
+ export function crypto_box_curve25519xchacha20poly1305_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
400
+ export function crypto_box_curve25519xchacha20poly1305_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
401
+ export function crypto_box_curve25519xchacha20poly1305_keypair(outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
402
+ export function crypto_box_curve25519xchacha20poly1305_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
403
+ export function crypto_box_curve25519xchacha20poly1305_open_detached_afternm(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
404
+ export function crypto_box_curve25519xchacha20poly1305_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
405
+ export function crypto_box_curve25519xchacha20poly1305_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
406
+ export function crypto_box_curve25519xchacha20poly1305_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
407
+ export function crypto_box_curve25519xchacha20poly1305_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
408
+ export function crypto_box_curve25519xchacha20poly1305_seed_keypair(seed: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
409
+ export function crypto_box_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {ciphertext: Uint8Array | string, mac: Uint8Array | string};
410
+ export function crypto_box_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
411
+ export function crypto_box_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
412
+ export function crypto_box_keypair(outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
413
+ export function crypto_box_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
414
+ export function crypto_box_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
415
+ export function crypto_box_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
416
+ export function crypto_box_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
417
+ export function crypto_box_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
418
+ export function crypto_box_seed_keypair(seed: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
419
+ export function crypto_core_ed25519_add(p: Uint8Array, q: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
420
+ export function crypto_core_ed25519_from_hash(r: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
421
+ export function crypto_core_ed25519_from_uniform(r: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
422
+ export function crypto_core_ed25519_is_valid_point(repr: Uint8Array): boolean;
423
+ export function crypto_core_ed25519_random(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
424
+ export function crypto_core_ed25519_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
425
+ export function crypto_core_ed25519_scalar_complement(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
426
+ export function crypto_core_ed25519_scalar_invert(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
427
+ export function crypto_core_ed25519_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
428
+ export function crypto_core_ed25519_scalar_negate(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
429
+ export function crypto_core_ed25519_scalar_random(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
430
+ export function crypto_core_ed25519_scalar_reduce(sample: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
431
+ export function crypto_core_ed25519_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
432
+ export function crypto_core_ed25519_sub(p: Uint8Array, q: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
433
+ export function crypto_core_hchacha20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
434
+ export function crypto_core_hsalsa20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
435
+ export function crypto_core_ristretto255_add(p: Uint8Array, q: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
436
+ export function crypto_core_ristretto255_from_hash(r: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
437
+ export function crypto_core_ristretto255_is_valid_point(repr: Uint8Array): boolean;
438
+ export function crypto_core_ristretto255_random(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
439
+ export function crypto_core_ristretto255_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
440
+ export function crypto_core_ristretto255_scalar_complement(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
441
+ export function crypto_core_ristretto255_scalar_invert(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
442
+ export function crypto_core_ristretto255_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
443
+ export function crypto_core_ristretto255_scalar_negate(s: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
444
+ export function crypto_core_ristretto255_scalar_random(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
445
+ export function crypto_core_ristretto255_scalar_reduce(sample: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
446
+ export function crypto_core_ristretto255_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
447
+ export function crypto_core_ristretto255_sub(p: Uint8Array, q: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
448
+ export function crypto_generichash(hash_length: number, message: Uint8Array | string, key: Uint8Array | string | null, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
449
+ export function crypto_generichash_blake2b_salt_personal(subkey_len: number, key: Uint8Array | string | null, id: Uint8Array | null, ctx: Uint8Array | null, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
450
+ export function crypto_generichash_final(state_address: StateAddress, hash_length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
451
+ export function crypto_generichash_init(key: Uint8Array | string | null, hash_length: number): StateAddress;
452
+ export function crypto_generichash_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
453
+ export function crypto_generichash_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
454
+ export function crypto_hash(message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
455
+ export function crypto_hash_sha256(message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
456
+ export function crypto_hash_sha256_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
457
+ export function crypto_hash_sha256_init(): StateAddress;
458
+ export function crypto_hash_sha256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
459
+ export function crypto_hash_sha512(message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
460
+ export function crypto_hash_sha512_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
461
+ export function crypto_hash_sha512_init(): StateAddress;
462
+ export function crypto_hash_sha512_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
463
+ export function crypto_ipcrypt_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
464
+ export function crypto_ipcrypt_encrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
465
+ export function crypto_ipcrypt_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
466
+ export function crypto_ipcrypt_nd_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
467
+ export function crypto_ipcrypt_nd_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
468
+ export function crypto_ipcrypt_nd_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
469
+ export function crypto_ipcrypt_ndx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
470
+ export function crypto_ipcrypt_ndx_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
471
+ export function crypto_ipcrypt_ndx_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
472
+ export function crypto_ipcrypt_pfx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
473
+ export function crypto_ipcrypt_pfx_encrypt(input: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
474
+ export function crypto_ipcrypt_pfx_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
475
+ export function crypto_kdf_derive_from_key(subkey_len: number, subkey_id: number | bigint, ctx: string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
476
+ export function crypto_kdf_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
477
+ export function crypto_kx_client_session_keys(clientPublicKey: Uint8Array, clientSecretKey: Uint8Array, serverPublicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {sharedRx: Uint8Array | string, sharedTx: Uint8Array | string};
478
+ export function crypto_kx_keypair(outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
479
+ export function crypto_kx_seed_keypair(seed: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
480
+ export function crypto_kx_server_session_keys(serverPublicKey: Uint8Array, serverSecretKey: Uint8Array, clientPublicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {sharedRx: Uint8Array | string, sharedTx: Uint8Array | string};
481
+ export function crypto_onetimeauth(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
482
+ export function crypto_onetimeauth_final(state_address: StateAddress, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
483
+ export function crypto_onetimeauth_init(key: Uint8Array | string | null): StateAddress;
484
+ export function crypto_onetimeauth_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
485
+ export function crypto_onetimeauth_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
486
+ export function crypto_onetimeauth_verify(hash: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
487
+ export function crypto_pwhash(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, algorithm: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
488
+ export function crypto_pwhash_scryptsalsa208sha256(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
489
+ export function crypto_pwhash_scryptsalsa208sha256_ll(password: Uint8Array | string, salt: Uint8Array | string, opsLimit: number, r: number, p: number, keyLength: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
490
+ export function crypto_pwhash_scryptsalsa208sha256_str(password: Uint8Array | string, opsLimit: number, memLimit: number): Uint8Array;
491
+ export function crypto_pwhash_scryptsalsa208sha256_str_verify(hashed_password: string, password: Uint8Array | string): boolean;
492
+ export function crypto_pwhash_str(password: Uint8Array | string, opsLimit: number, memLimit: number): Uint8Array;
493
+ export function crypto_pwhash_str_needs_rehash(hashed_password: string, opsLimit: number, memLimit: number): boolean;
494
+ export function crypto_pwhash_str_verify(hashed_password: string, password: Uint8Array | string): boolean;
495
+ export function crypto_scalarmult(privateKey: Uint8Array, publicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
496
+ export function crypto_scalarmult_base(privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
497
+ export function crypto_scalarmult_ed25519(n: Uint8Array, p: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
498
+ export function crypto_scalarmult_ed25519_base(scalar: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
499
+ export function crypto_scalarmult_ed25519_base_noclamp(scalar: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
500
+ export function crypto_scalarmult_ed25519_noclamp(n: Uint8Array, p: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
501
+ export function crypto_scalarmult_ristretto255(scalar: Uint8Array, element: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
502
+ export function crypto_scalarmult_ristretto255_base(scalar: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
503
+ export function crypto_secretbox_detached(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {mac: Uint8Array | string, cipher: Uint8Array | string};
504
+ export function crypto_secretbox_easy(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
505
+ export function crypto_secretbox_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
506
+ export function crypto_secretbox_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
507
+ export function crypto_secretbox_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
508
+ export function crypto_secretstream_xchacha20poly1305_init_pull(header: Uint8Array, key: Uint8Array): StateAddress;
509
+ export function crypto_secretstream_xchacha20poly1305_init_push(key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {state: StateAddress, header: Uint8Array | string};
510
+ export function crypto_secretstream_xchacha20poly1305_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
511
+ export function crypto_secretstream_xchacha20poly1305_pull(state_address: StateAddress, cipher: Uint8Array, ad: Uint8Array | string | null, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {message: Uint8Array | string, tag: number} | false;
512
+ export function crypto_secretstream_xchacha20poly1305_push(state_address: StateAddress, message_chunk: Uint8Array | string, ad: Uint8Array | string | null, tag: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
513
+ export function crypto_secretstream_xchacha20poly1305_rekey(state_address: StateAddress): void;
514
+ export function crypto_shorthash(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
515
+ export function crypto_shorthash_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
516
+ export function crypto_shorthash_siphashx24(message: Uint8Array | string, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
517
+ export function crypto_sign(message: Uint8Array | string, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
518
+ export function crypto_sign_detached(message: Uint8Array | string, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
519
+ export function crypto_sign_ed25519_pk_to_curve25519(edPk: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
520
+ export function crypto_sign_ed25519_sk_to_curve25519(edSk: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
521
+ export function crypto_sign_ed25519_sk_to_pk(privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
522
+ export function crypto_sign_ed25519_sk_to_seed(privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
523
+ export function crypto_sign_final_create(state_address: StateAddress, privateKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
524
+ export function crypto_sign_final_verify(state_address: StateAddress, signature: Uint8Array, publicKey: Uint8Array): boolean;
525
+ export function crypto_sign_init(): StateAddress;
526
+ export function crypto_sign_keypair(outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
527
+ export function crypto_sign_open(signedMessage: Uint8Array, publicKey: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
528
+ export function crypto_sign_seed_keypair(seed: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): {publicKey: Uint8Array | string, privateKey: Uint8Array | string, keyType: string};
529
+ export function crypto_sign_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
530
+ export function crypto_sign_verify_detached(signature: Uint8Array, message: Uint8Array | string, publicKey: Uint8Array): boolean;
531
+ export function crypto_stream_chacha20(outLength: number, key: Uint8Array, nonce: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
532
+ export function crypto_stream_chacha20_ietf_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
533
+ export function crypto_stream_chacha20_ietf_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
534
+ export function crypto_stream_chacha20_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
535
+ export function crypto_stream_chacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
536
+ export function crypto_stream_chacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
537
+ export function crypto_stream_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
538
+ export function crypto_stream_xchacha20_keygen(outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
539
+ export function crypto_stream_xchacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
540
+ export function crypto_stream_xchacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
541
+ export function crypto_xof_shake128(out_length: number, message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
542
+ export function crypto_xof_shake128_init(): StateAddress;
543
+ export function crypto_xof_shake128_init_with_domain(domain: number): StateAddress;
544
+ export function crypto_xof_shake128_squeeze(state_address: StateAddress, out_length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
545
+ export function crypto_xof_shake128_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
546
+ export function crypto_xof_shake256(out_length: number, message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
547
+ export function crypto_xof_shake256_init(): StateAddress;
548
+ export function crypto_xof_shake256_init_with_domain(domain: number): StateAddress;
549
+ export function crypto_xof_shake256_squeeze(state_address: StateAddress, out_length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
550
+ export function crypto_xof_shake256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
551
+ export function crypto_xof_turboshake128(out_length: number, message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
552
+ export function crypto_xof_turboshake128_init(): StateAddress;
553
+ export function crypto_xof_turboshake128_init_with_domain(domain: number): StateAddress;
554
+ export function crypto_xof_turboshake128_squeeze(state_address: StateAddress, out_length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
555
+ export function crypto_xof_turboshake128_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
556
+ export function crypto_xof_turboshake256(out_length: number, message: Uint8Array | string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
557
+ export function crypto_xof_turboshake256_init(): StateAddress;
558
+ export function crypto_xof_turboshake256_init_with_domain(domain: number): StateAddress;
559
+ export function crypto_xof_turboshake256_squeeze(state_address: StateAddress, out_length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
560
+ export function crypto_xof_turboshake256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
561
+ export function randombytes_buf(length: number, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
562
+ export function randombytes_buf_deterministic(length: number, seed: Uint8Array, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
563
+ export function randombytes_close(): void;
564
+ export function randombytes_random(): number;
565
+ export function randombytes_set_implementation(implementation: object): void;
566
+ export function randombytes_stir(): void;
567
+ export function randombytes_uniform(upper_bound: number): number;
568
+ export function sodium_bin2ip(bin: Uint8Array): Uint8Array;
569
+ export function sodium_ip2bin(ip: string, outputFormat?: "uint8array" | "text" | "hex" | "base64"): Uint8Array | string;
570
+ export function sodium_version_string(): string;
571
+
572
+ // Internal: list of all exported symbols
573
+ export function symbols(): string[];