libsodium-wrappers-sumo 0.8.0 → 0.8.2

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,2574 @@
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 type Uint8ArrayOutputFormat = "uint8array";
27
+ export type StringOutputFormat = "text" | "hex" | "base64";
28
+
29
+ export function from_base64(input: string, variant?: base64_variants): Uint8Array;
30
+ export function to_base64(input: Uint8Array | string, variant?: base64_variants): string;
31
+ export function from_hex(input: string): Uint8Array;
32
+ export function to_hex(input: Uint8Array | string): string;
33
+ export function from_string(input: string): Uint8Array;
34
+ export function to_string(input: Uint8Array): string;
35
+ export function pad(buf: Uint8Array, blocksize: number): Uint8Array;
36
+ export function unpad(buf: Uint8Array, blocksize: number): Uint8Array;
37
+ export function memcmp(b1: Uint8Array, b2: Uint8Array): boolean;
38
+ export function memzero(bytes: Uint8Array): void;
39
+ export function increment(bytes: Uint8Array): void;
40
+ export function add(a: Uint8Array, b: Uint8Array): void;
41
+ export function compare(b1: Uint8Array, b2: Uint8Array): number;
42
+ export function is_zero(bytes: Uint8Array): boolean;
43
+
44
+ // Constants
45
+ export const SODIUM_LIBRARY_VERSION_MAJOR: number;
46
+ export const SODIUM_LIBRARY_VERSION_MINOR: number;
47
+ export const SODIUM_VERSION_STRING: string;
48
+ export const crypto_aead_aegis128l_ABYTES: number;
49
+ export const crypto_aead_aegis128l_KEYBYTES: number;
50
+ export const crypto_aead_aegis128l_MESSAGEBYTES_MAX: number;
51
+ export const crypto_aead_aegis128l_NPUBBYTES: number;
52
+ export const crypto_aead_aegis128l_NSECBYTES: number;
53
+ export const crypto_aead_aegis256_ABYTES: number;
54
+ export const crypto_aead_aegis256_KEYBYTES: number;
55
+ export const crypto_aead_aegis256_MESSAGEBYTES_MAX: number;
56
+ export const crypto_aead_aegis256_NPUBBYTES: number;
57
+ export const crypto_aead_aegis256_NSECBYTES: number;
58
+ export const crypto_aead_aes256gcm_ABYTES: number;
59
+ export const crypto_aead_aes256gcm_KEYBYTES: number;
60
+ export const crypto_aead_aes256gcm_MESSAGEBYTES_MAX: number;
61
+ export const crypto_aead_aes256gcm_NPUBBYTES: number;
62
+ export const crypto_aead_aes256gcm_NSECBYTES: number;
63
+ export const crypto_aead_chacha20poly1305_ABYTES: number;
64
+ export const crypto_aead_chacha20poly1305_IETF_ABYTES: number;
65
+ export const crypto_aead_chacha20poly1305_IETF_KEYBYTES: number;
66
+ export const crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
67
+ export const crypto_aead_chacha20poly1305_IETF_NPUBBYTES: number;
68
+ export const crypto_aead_chacha20poly1305_IETF_NSECBYTES: number;
69
+ export const crypto_aead_chacha20poly1305_KEYBYTES: number;
70
+ export const crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX: number;
71
+ export const crypto_aead_chacha20poly1305_NPUBBYTES: number;
72
+ export const crypto_aead_chacha20poly1305_NSECBYTES: number;
73
+ export const crypto_aead_chacha20poly1305_ietf_ABYTES: number;
74
+ export const crypto_aead_chacha20poly1305_ietf_KEYBYTES: number;
75
+ export const crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
76
+ export const crypto_aead_chacha20poly1305_ietf_NPUBBYTES: number;
77
+ export const crypto_aead_chacha20poly1305_ietf_NSECBYTES: number;
78
+ export const crypto_aead_xchacha20poly1305_IETF_ABYTES: number;
79
+ export const crypto_aead_xchacha20poly1305_IETF_KEYBYTES: number;
80
+ export const crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
81
+ export const crypto_aead_xchacha20poly1305_IETF_NPUBBYTES: number;
82
+ export const crypto_aead_xchacha20poly1305_IETF_NSECBYTES: number;
83
+ export const crypto_aead_xchacha20poly1305_ietf_ABYTES: number;
84
+ export const crypto_aead_xchacha20poly1305_ietf_KEYBYTES: number;
85
+ export const crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
86
+ export const crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: number;
87
+ export const crypto_aead_xchacha20poly1305_ietf_NSECBYTES: number;
88
+ export const crypto_auth_BYTES: number;
89
+ export const crypto_auth_KEYBYTES: number;
90
+ export const crypto_auth_hmacsha256_BYTES: number;
91
+ export const crypto_auth_hmacsha256_KEYBYTES: number;
92
+ export const crypto_auth_hmacsha512256_BYTES: number;
93
+ export const crypto_auth_hmacsha512256_KEYBYTES: number;
94
+ export const crypto_auth_hmacsha512_BYTES: number;
95
+ export const crypto_auth_hmacsha512_KEYBYTES: number;
96
+ export const crypto_box_BEFORENMBYTES: number;
97
+ export const crypto_box_MACBYTES: number;
98
+ export const crypto_box_MESSAGEBYTES_MAX: number;
99
+ export const crypto_box_NONCEBYTES: number;
100
+ export const crypto_box_PUBLICKEYBYTES: number;
101
+ export const crypto_box_SEALBYTES: number;
102
+ export const crypto_box_SECRETKEYBYTES: number;
103
+ export const crypto_box_SEEDBYTES: number;
104
+ export const crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES: number;
105
+ export const crypto_box_curve25519xchacha20poly1305_MACBYTES: number;
106
+ export const crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX: number;
107
+ export const crypto_box_curve25519xchacha20poly1305_NONCEBYTES: number;
108
+ export const crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES: number;
109
+ export const crypto_box_curve25519xchacha20poly1305_SEALBYTES: number;
110
+ export const crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES: number;
111
+ export const crypto_box_curve25519xchacha20poly1305_SEEDBYTES: number;
112
+ export const crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES: number;
113
+ export const crypto_box_curve25519xsalsa20poly1305_MACBYTES: number;
114
+ export const crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX: number;
115
+ export const crypto_box_curve25519xsalsa20poly1305_NONCEBYTES: number;
116
+ export const crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES: number;
117
+ export const crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES: number;
118
+ export const crypto_box_curve25519xsalsa20poly1305_SEEDBYTES: number;
119
+ export const crypto_core_ed25519_BYTES: number;
120
+ export const crypto_core_ed25519_HASHBYTES: number;
121
+ export const crypto_core_ed25519_NONREDUCEDSCALARBYTES: number;
122
+ export const crypto_core_ed25519_SCALARBYTES: number;
123
+ export const crypto_core_ed25519_UNIFORMBYTES: number;
124
+ export const crypto_core_hchacha20_CONSTBYTES: number;
125
+ export const crypto_core_hchacha20_INPUTBYTES: number;
126
+ export const crypto_core_hchacha20_KEYBYTES: number;
127
+ export const crypto_core_hchacha20_OUTPUTBYTES: number;
128
+ export const crypto_core_hsalsa20_CONSTBYTES: number;
129
+ export const crypto_core_hsalsa20_INPUTBYTES: number;
130
+ export const crypto_core_hsalsa20_KEYBYTES: number;
131
+ export const crypto_core_hsalsa20_OUTPUTBYTES: number;
132
+ export const crypto_core_ristretto255_BYTES: number;
133
+ export const crypto_core_ristretto255_HASHBYTES: number;
134
+ export const crypto_core_ristretto255_NONREDUCEDSCALARBYTES: number;
135
+ export const crypto_core_ristretto255_SCALARBYTES: number;
136
+ export const crypto_core_salsa2012_CONSTBYTES: number;
137
+ export const crypto_core_salsa2012_INPUTBYTES: number;
138
+ export const crypto_core_salsa2012_KEYBYTES: number;
139
+ export const crypto_core_salsa2012_OUTPUTBYTES: number;
140
+ export const crypto_core_salsa208_CONSTBYTES: number;
141
+ export const crypto_core_salsa208_INPUTBYTES: number;
142
+ export const crypto_core_salsa208_KEYBYTES: number;
143
+ export const crypto_core_salsa208_OUTPUTBYTES: number;
144
+ export const crypto_core_salsa20_CONSTBYTES: number;
145
+ export const crypto_core_salsa20_INPUTBYTES: number;
146
+ export const crypto_core_salsa20_KEYBYTES: number;
147
+ export const crypto_core_salsa20_OUTPUTBYTES: number;
148
+ export const crypto_generichash_BYTES: number;
149
+ export const crypto_generichash_BYTES_MAX: number;
150
+ export const crypto_generichash_BYTES_MIN: number;
151
+ export const crypto_generichash_KEYBYTES: number;
152
+ export const crypto_generichash_KEYBYTES_MAX: number;
153
+ export const crypto_generichash_KEYBYTES_MIN: number;
154
+ export const crypto_generichash_blake2b_BYTES: number;
155
+ export const crypto_generichash_blake2b_BYTES_MAX: number;
156
+ export const crypto_generichash_blake2b_BYTES_MIN: number;
157
+ export const crypto_generichash_blake2b_KEYBYTES: number;
158
+ export const crypto_generichash_blake2b_KEYBYTES_MAX: number;
159
+ export const crypto_generichash_blake2b_KEYBYTES_MIN: number;
160
+ export const crypto_generichash_blake2b_PERSONALBYTES: number;
161
+ export const crypto_generichash_blake2b_SALTBYTES: number;
162
+ export const crypto_hash_BYTES: number;
163
+ export const crypto_hash_sha256_BYTES: number;
164
+ export const crypto_hash_sha512_BYTES: number;
165
+ export const crypto_ipcrypt_BYTES: number;
166
+ export const crypto_ipcrypt_KEYBYTES: number;
167
+ export const crypto_ipcrypt_ND_INPUTBYTES: number;
168
+ export const crypto_ipcrypt_ND_KEYBYTES: number;
169
+ export const crypto_ipcrypt_ND_OUTPUTBYTES: number;
170
+ export const crypto_ipcrypt_ND_TWEAKBYTES: number;
171
+ export const crypto_ipcrypt_NDX_INPUTBYTES: number;
172
+ export const crypto_ipcrypt_NDX_KEYBYTES: number;
173
+ export const crypto_ipcrypt_NDX_OUTPUTBYTES: number;
174
+ export const crypto_ipcrypt_NDX_TWEAKBYTES: number;
175
+ export const crypto_ipcrypt_PFX_BYTES: number;
176
+ export const crypto_ipcrypt_PFX_KEYBYTES: number;
177
+ export const crypto_kdf_BYTES_MAX: number;
178
+ export const crypto_kdf_BYTES_MIN: number;
179
+ export const crypto_kdf_CONTEXTBYTES: number;
180
+ export const crypto_kdf_KEYBYTES: number;
181
+ export const crypto_kdf_blake2b_BYTES_MAX: number;
182
+ export const crypto_kdf_blake2b_BYTES_MIN: number;
183
+ export const crypto_kdf_blake2b_CONTEXTBYTES: number;
184
+ export const crypto_kdf_blake2b_KEYBYTES: number;
185
+ export const crypto_kdf_hkdf_sha256_BYTES_MAX: number;
186
+ export const crypto_kdf_hkdf_sha256_BYTES_MIN: number;
187
+ export const crypto_kdf_hkdf_sha256_KEYBYTES: number;
188
+ export const crypto_kdf_hkdf_sha512_BYTES_MAX: number;
189
+ export const crypto_kdf_hkdf_sha512_BYTES_MIN: number;
190
+ export const crypto_kdf_hkdf_sha512_KEYBYTES: number;
191
+ export const crypto_kx_PUBLICKEYBYTES: number;
192
+ export const crypto_kx_SECRETKEYBYTES: number;
193
+ export const crypto_kx_SEEDBYTES: number;
194
+ export const crypto_kx_SESSIONKEYBYTES: number;
195
+ export const crypto_onetimeauth_BYTES: number;
196
+ export const crypto_onetimeauth_KEYBYTES: number;
197
+ export const crypto_onetimeauth_poly1305_BYTES: number;
198
+ export const crypto_onetimeauth_poly1305_KEYBYTES: number;
199
+ export const crypto_pwhash_ALG_ARGON2I13: number;
200
+ export const crypto_pwhash_ALG_ARGON2ID13: number;
201
+ export const crypto_pwhash_ALG_DEFAULT: number;
202
+ export const crypto_pwhash_BYTES_MAX: number;
203
+ export const crypto_pwhash_BYTES_MIN: number;
204
+ export const crypto_pwhash_MEMLIMIT_INTERACTIVE: number;
205
+ export const crypto_pwhash_MEMLIMIT_MAX: number;
206
+ export const crypto_pwhash_MEMLIMIT_MIN: number;
207
+ export const crypto_pwhash_MEMLIMIT_MODERATE: number;
208
+ export const crypto_pwhash_MEMLIMIT_SENSITIVE: number;
209
+ export const crypto_pwhash_OPSLIMIT_INTERACTIVE: number;
210
+ export const crypto_pwhash_OPSLIMIT_MAX: number;
211
+ export const crypto_pwhash_OPSLIMIT_MIN: number;
212
+ export const crypto_pwhash_OPSLIMIT_MODERATE: number;
213
+ export const crypto_pwhash_OPSLIMIT_SENSITIVE: number;
214
+ export const crypto_pwhash_PASSWD_MAX: number;
215
+ export const crypto_pwhash_PASSWD_MIN: number;
216
+ export const crypto_pwhash_SALTBYTES: number;
217
+ export const crypto_pwhash_STRBYTES: number;
218
+ export const crypto_pwhash_STRPREFIX: string;
219
+ export const crypto_pwhash_argon2i_BYTES_MAX: number;
220
+ export const crypto_pwhash_argon2i_BYTES_MIN: number;
221
+ export const crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE: number;
222
+ export const crypto_pwhash_argon2i_MEMLIMIT_MAX: number;
223
+ export const crypto_pwhash_argon2i_MEMLIMIT_MIN: number;
224
+ export const crypto_pwhash_argon2i_MEMLIMIT_MODERATE: number;
225
+ export const crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE: number;
226
+ export const crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE: number;
227
+ export const crypto_pwhash_argon2i_OPSLIMIT_MAX: number;
228
+ export const crypto_pwhash_argon2i_OPSLIMIT_MIN: number;
229
+ export const crypto_pwhash_argon2i_OPSLIMIT_MODERATE: number;
230
+ export const crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE: number;
231
+ export const crypto_pwhash_argon2i_PASSWD_MAX: number;
232
+ export const crypto_pwhash_argon2i_PASSWD_MIN: number;
233
+ export const crypto_pwhash_argon2i_SALTBYTES: number;
234
+ export const crypto_pwhash_argon2i_STRBYTES: number;
235
+ export const crypto_pwhash_argon2i_STRPREFIX: string;
236
+ export const crypto_pwhash_argon2id_BYTES_MAX: number;
237
+ export const crypto_pwhash_argon2id_BYTES_MIN: number;
238
+ export const crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE: number;
239
+ export const crypto_pwhash_argon2id_MEMLIMIT_MAX: number;
240
+ export const crypto_pwhash_argon2id_MEMLIMIT_MIN: number;
241
+ export const crypto_pwhash_argon2id_MEMLIMIT_MODERATE: number;
242
+ export const crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE: number;
243
+ export const crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE: number;
244
+ export const crypto_pwhash_argon2id_OPSLIMIT_MAX: number;
245
+ export const crypto_pwhash_argon2id_OPSLIMIT_MIN: number;
246
+ export const crypto_pwhash_argon2id_OPSLIMIT_MODERATE: number;
247
+ export const crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE: number;
248
+ export const crypto_pwhash_argon2id_PASSWD_MAX: number;
249
+ export const crypto_pwhash_argon2id_PASSWD_MIN: number;
250
+ export const crypto_pwhash_argon2id_SALTBYTES: number;
251
+ export const crypto_pwhash_argon2id_STRBYTES: number;
252
+ export const crypto_pwhash_argon2id_STRPREFIX: string;
253
+ export const crypto_pwhash_scryptsalsa208sha256_BYTES_MAX: number;
254
+ export const crypto_pwhash_scryptsalsa208sha256_BYTES_MIN: number;
255
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: number;
256
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX: number;
257
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN: number;
258
+ export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: number;
259
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: number;
260
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX: number;
261
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN: number;
262
+ export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: number;
263
+ export const crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX: number;
264
+ export const crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN: number;
265
+ export const crypto_pwhash_scryptsalsa208sha256_SALTBYTES: number;
266
+ export const crypto_pwhash_scryptsalsa208sha256_STRBYTES: number;
267
+ export const crypto_pwhash_scryptsalsa208sha256_STRPREFIX: string;
268
+ export const crypto_scalarmult_BYTES: number;
269
+ export const crypto_scalarmult_SCALARBYTES: number;
270
+ export const crypto_scalarmult_curve25519_BYTES: number;
271
+ export const crypto_scalarmult_curve25519_SCALARBYTES: number;
272
+ export const crypto_scalarmult_ed25519_BYTES: number;
273
+ export const crypto_scalarmult_ed25519_SCALARBYTES: number;
274
+ export const crypto_scalarmult_ristretto255_BYTES: number;
275
+ export const crypto_scalarmult_ristretto255_SCALARBYTES: number;
276
+ export const crypto_secretbox_KEYBYTES: number;
277
+ export const crypto_secretbox_MACBYTES: number;
278
+ export const crypto_secretbox_MESSAGEBYTES_MAX: number;
279
+ export const crypto_secretbox_NONCEBYTES: number;
280
+ export const crypto_secretbox_xchacha20poly1305_KEYBYTES: number;
281
+ export const crypto_secretbox_xchacha20poly1305_MACBYTES: number;
282
+ export const crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX: number;
283
+ export const crypto_secretbox_xchacha20poly1305_NONCEBYTES: number;
284
+ export const crypto_secretbox_xsalsa20poly1305_KEYBYTES: number;
285
+ export const crypto_secretbox_xsalsa20poly1305_MACBYTES: number;
286
+ export const crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX: number;
287
+ export const crypto_secretbox_xsalsa20poly1305_NONCEBYTES: number;
288
+ export const crypto_secretstream_xchacha20poly1305_ABYTES: number;
289
+ export const crypto_secretstream_xchacha20poly1305_HEADERBYTES: number;
290
+ export const crypto_secretstream_xchacha20poly1305_KEYBYTES: number;
291
+ export const crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX: number;
292
+ export const crypto_secretstream_xchacha20poly1305_TAG_FINAL: number;
293
+ export const crypto_secretstream_xchacha20poly1305_TAG_MESSAGE: number;
294
+ export const crypto_secretstream_xchacha20poly1305_TAG_PUSH: number;
295
+ export const crypto_secretstream_xchacha20poly1305_TAG_REKEY: number;
296
+ export const crypto_shorthash_BYTES: number;
297
+ export const crypto_shorthash_KEYBYTES: number;
298
+ export const crypto_shorthash_siphash24_BYTES: number;
299
+ export const crypto_shorthash_siphash24_KEYBYTES: number;
300
+ export const crypto_shorthash_siphashx24_BYTES: number;
301
+ export const crypto_shorthash_siphashx24_KEYBYTES: number;
302
+ export const crypto_sign_BYTES: number;
303
+ export const crypto_sign_MESSAGEBYTES_MAX: number;
304
+ export const crypto_sign_PUBLICKEYBYTES: number;
305
+ export const crypto_sign_SECRETKEYBYTES: number;
306
+ export const crypto_sign_SEEDBYTES: number;
307
+ export const crypto_sign_ed25519_BYTES: number;
308
+ export const crypto_sign_ed25519_MESSAGEBYTES_MAX: number;
309
+ export const crypto_sign_ed25519_PUBLICKEYBYTES: number;
310
+ export const crypto_sign_ed25519_SECRETKEYBYTES: number;
311
+ export const crypto_sign_ed25519_SEEDBYTES: number;
312
+ export const crypto_stream_KEYBYTES: number;
313
+ export const crypto_stream_MESSAGEBYTES_MAX: number;
314
+ export const crypto_stream_NONCEBYTES: number;
315
+ export const crypto_stream_chacha20_IETF_KEYBYTES: number;
316
+ export const crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX: number;
317
+ export const crypto_stream_chacha20_IETF_NONCEBYTES: number;
318
+ export const crypto_stream_chacha20_KEYBYTES: number;
319
+ export const crypto_stream_chacha20_MESSAGEBYTES_MAX: number;
320
+ export const crypto_stream_chacha20_NONCEBYTES: number;
321
+ export const crypto_stream_chacha20_ietf_KEYBYTES: number;
322
+ export const crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX: number;
323
+ export const crypto_stream_chacha20_ietf_NONCEBYTES: number;
324
+ export const crypto_stream_salsa2012_KEYBYTES: number;
325
+ export const crypto_stream_salsa2012_MESSAGEBYTES_MAX: number;
326
+ export const crypto_stream_salsa2012_NONCEBYTES: number;
327
+ export const crypto_stream_salsa208_KEYBYTES: number;
328
+ export const crypto_stream_salsa208_MESSAGEBYTES_MAX: number;
329
+ export const crypto_stream_salsa208_NONCEBYTES: number;
330
+ export const crypto_stream_salsa20_KEYBYTES: number;
331
+ export const crypto_stream_salsa20_MESSAGEBYTES_MAX: number;
332
+ export const crypto_stream_salsa20_NONCEBYTES: number;
333
+ export const crypto_stream_xchacha20_KEYBYTES: number;
334
+ export const crypto_stream_xchacha20_MESSAGEBYTES_MAX: number;
335
+ export const crypto_stream_xchacha20_NONCEBYTES: number;
336
+ export const crypto_stream_xsalsa20_KEYBYTES: number;
337
+ export const crypto_stream_xsalsa20_MESSAGEBYTES_MAX: number;
338
+ export const crypto_stream_xsalsa20_NONCEBYTES: number;
339
+ export const crypto_xof_shake128_BLOCKBYTES: number;
340
+ export const crypto_xof_shake128_STATEBYTES: number;
341
+ export const crypto_xof_shake256_BLOCKBYTES: number;
342
+ export const crypto_xof_shake256_STATEBYTES: number;
343
+ export const crypto_xof_turboshake128_BLOCKBYTES: number;
344
+ export const crypto_xof_turboshake128_STATEBYTES: number;
345
+ export const crypto_xof_turboshake256_BLOCKBYTES: number;
346
+ export const crypto_xof_turboshake256_STATEBYTES: number;
347
+ export const crypto_verify_16_BYTES: number;
348
+ export const crypto_verify_32_BYTES: number;
349
+ export const crypto_verify_64_BYTES: number;
350
+
351
+ // Crypto functions
352
+ /**
353
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS128L_NSECBYTES bytes)
354
+ * @param ciphertext
355
+ * @param additional_data
356
+ * @param public_nonce (CRYPTO_AEAD_AEGIS128L_NPUBBYTES bytes)
357
+ * @param key (CRYPTO_AEAD_AEGIS128L_KEYBYTES bytes)
358
+ * @param outputFormat Output format (default: Uint8Array)
359
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS128L_ABYTES bytes)
360
+ */
361
+ export function crypto_aead_aegis128l_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
362
+ export function crypto_aead_aegis128l_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
363
+ /**
364
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS128L_NSECBYTES bytes)
365
+ * @param ciphertext
366
+ * @param mac (CRYPTO_AEAD_AEGIS128L_ABYTES bytes)
367
+ * @param additional_data
368
+ * @param public_nonce (CRYPTO_AEAD_AEGIS128L_NPUBBYTES bytes)
369
+ * @param key (CRYPTO_AEAD_AEGIS128L_KEYBYTES bytes)
370
+ * @param outputFormat Output format (default: Uint8Array)
371
+ * @returns Uint8Array | string
372
+ */
373
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
374
+ 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: StringOutputFormat): string;
375
+ /**
376
+ * @param message
377
+ * @param additional_data
378
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS128L_NSECBYTES bytes)
379
+ * @param public_nonce (CRYPTO_AEAD_AEGIS128L_NPUBBYTES bytes)
380
+ * @param key (CRYPTO_AEAD_AEGIS128L_KEYBYTES bytes)
381
+ * @param outputFormat Output format (default: Uint8Array)
382
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS128L_ABYTES bytes)
383
+ */
384
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
385
+ 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: StringOutputFormat): string;
386
+ /**
387
+ * @param message
388
+ * @param additional_data
389
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS128L_NSECBYTES bytes)
390
+ * @param public_nonce (CRYPTO_AEAD_AEGIS128L_NPUBBYTES bytes)
391
+ * @param key (CRYPTO_AEAD_AEGIS128L_KEYBYTES bytes)
392
+ * @param outputFormat Output format (default: Uint8Array)
393
+ * @returns {ciphertext, mac}
394
+ */
395
+ 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?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
396
+ 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: StringOutputFormat): { ciphertext: string; mac: string };
397
+ /**
398
+ * @param outputFormat Output format (default: Uint8Array)
399
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS128L_KEYBYTES bytes)
400
+ */
401
+ export function crypto_aead_aegis128l_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
402
+ export function crypto_aead_aegis128l_keygen(outputFormat: StringOutputFormat): string;
403
+ /**
404
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS256_NSECBYTES bytes)
405
+ * @param ciphertext
406
+ * @param additional_data
407
+ * @param public_nonce (CRYPTO_AEAD_AEGIS256_NPUBBYTES bytes)
408
+ * @param key (CRYPTO_AEAD_AEGIS256_KEYBYTES bytes)
409
+ * @param outputFormat Output format (default: Uint8Array)
410
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS256_ABYTES bytes)
411
+ */
412
+ export function crypto_aead_aegis256_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
413
+ export function crypto_aead_aegis256_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
414
+ /**
415
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS256_NSECBYTES bytes)
416
+ * @param ciphertext
417
+ * @param mac (CRYPTO_AEAD_AEGIS256_ABYTES bytes)
418
+ * @param additional_data
419
+ * @param public_nonce (CRYPTO_AEAD_AEGIS256_NPUBBYTES bytes)
420
+ * @param key (CRYPTO_AEAD_AEGIS256_KEYBYTES bytes)
421
+ * @param outputFormat Output format (default: Uint8Array)
422
+ * @returns Uint8Array | string
423
+ */
424
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
425
+ 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: StringOutputFormat): string;
426
+ /**
427
+ * @param message
428
+ * @param additional_data
429
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS256_NSECBYTES bytes)
430
+ * @param public_nonce (CRYPTO_AEAD_AEGIS256_NPUBBYTES bytes)
431
+ * @param key (CRYPTO_AEAD_AEGIS256_KEYBYTES bytes)
432
+ * @param outputFormat Output format (default: Uint8Array)
433
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS256_ABYTES bytes)
434
+ */
435
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
436
+ 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: StringOutputFormat): string;
437
+ /**
438
+ * @param message
439
+ * @param additional_data
440
+ * @param secret_nonce (CRYPTO_AEAD_AEGIS256_NSECBYTES bytes)
441
+ * @param public_nonce (CRYPTO_AEAD_AEGIS256_NPUBBYTES bytes)
442
+ * @param key (CRYPTO_AEAD_AEGIS256_KEYBYTES bytes)
443
+ * @param outputFormat Output format (default: Uint8Array)
444
+ * @returns {ciphertext, mac}
445
+ */
446
+ 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?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
447
+ 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: StringOutputFormat): { ciphertext: string; mac: string };
448
+ /**
449
+ * @param outputFormat Output format (default: Uint8Array)
450
+ * @returns Uint8Array | string (CRYPTO_AEAD_AEGIS256_KEYBYTES bytes)
451
+ */
452
+ export function crypto_aead_aegis256_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
453
+ export function crypto_aead_aegis256_keygen(outputFormat: StringOutputFormat): string;
454
+ /**
455
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES bytes)
456
+ * @param ciphertext
457
+ * @param additional_data
458
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES bytes)
459
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES bytes)
460
+ * @param outputFormat Output format (default: Uint8Array)
461
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_ABYTES bytes)
462
+ */
463
+ export function crypto_aead_chacha20poly1305_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
464
+ export function crypto_aead_chacha20poly1305_decrypt(secret_nonce: Uint8Array | string | null, ciphertext: Uint8Array, additional_data: Uint8Array | string | null, public_nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
465
+ /**
466
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES bytes)
467
+ * @param ciphertext
468
+ * @param mac (CRYPTO_BOX_MACBYTES bytes)
469
+ * @param additional_data
470
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES bytes)
471
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES bytes)
472
+ * @param outputFormat Output format (default: Uint8Array)
473
+ * @returns Uint8Array | string
474
+ */
475
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
476
+ 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: StringOutputFormat): string;
477
+ /**
478
+ * @param message
479
+ * @param additional_data
480
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES bytes)
481
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES bytes)
482
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES bytes)
483
+ * @param outputFormat Output format (default: Uint8Array)
484
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_ABYTES bytes)
485
+ */
486
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
487
+ 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: StringOutputFormat): string;
488
+ /**
489
+ * @param message
490
+ * @param additional_data
491
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES bytes)
492
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES bytes)
493
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES bytes)
494
+ * @param outputFormat Output format (default: Uint8Array)
495
+ * @returns {ciphertext, mac}
496
+ */
497
+ 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?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
498
+ 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: StringOutputFormat): { ciphertext: string; mac: string };
499
+ /**
500
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES bytes)
501
+ * @param ciphertext
502
+ * @param additional_data
503
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES bytes)
504
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes)
505
+ * @param outputFormat Output format (default: Uint8Array)
506
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES bytes)
507
+ */
508
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
509
+ 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: StringOutputFormat): string;
510
+ /**
511
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES bytes)
512
+ * @param ciphertext
513
+ * @param mac (CRYPTO_BOX_MACBYTES bytes)
514
+ * @param additional_data
515
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES bytes)
516
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes)
517
+ * @param outputFormat Output format (default: Uint8Array)
518
+ * @returns Uint8Array | string
519
+ */
520
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
521
+ 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: StringOutputFormat): string;
522
+ /**
523
+ * @param message
524
+ * @param additional_data
525
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES bytes)
526
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES bytes)
527
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes)
528
+ * @param outputFormat Output format (default: Uint8Array)
529
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES bytes)
530
+ */
531
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
532
+ 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: StringOutputFormat): string;
533
+ /**
534
+ * @param message
535
+ * @param additional_data
536
+ * @param secret_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES bytes)
537
+ * @param public_nonce (CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES bytes)
538
+ * @param key (CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes)
539
+ * @param outputFormat Output format (default: Uint8Array)
540
+ * @returns {ciphertext, mac}
541
+ */
542
+ 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?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
543
+ 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: StringOutputFormat): { ciphertext: string; mac: string };
544
+ /**
545
+ * @param outputFormat Output format (default: Uint8Array)
546
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes)
547
+ */
548
+ export function crypto_aead_chacha20poly1305_ietf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
549
+ export function crypto_aead_chacha20poly1305_ietf_keygen(outputFormat: StringOutputFormat): string;
550
+ /**
551
+ * @param outputFormat Output format (default: Uint8Array)
552
+ * @returns Uint8Array | string (CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES bytes)
553
+ */
554
+ export function crypto_aead_chacha20poly1305_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
555
+ export function crypto_aead_chacha20poly1305_keygen(outputFormat: StringOutputFormat): string;
556
+ /**
557
+ * @param secret_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES bytes)
558
+ * @param ciphertext
559
+ * @param additional_data
560
+ * @param public_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES bytes)
561
+ * @param key (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES bytes)
562
+ * @param outputFormat Output format (default: Uint8Array)
563
+ * @returns Uint8Array | string (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES bytes)
564
+ */
565
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
566
+ 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: StringOutputFormat): string;
567
+ /**
568
+ * @param secret_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES bytes)
569
+ * @param ciphertext
570
+ * @param mac (CRYPTO_BOX_MACBYTES bytes)
571
+ * @param additional_data
572
+ * @param public_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES bytes)
573
+ * @param key (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES bytes)
574
+ * @param outputFormat Output format (default: Uint8Array)
575
+ * @returns Uint8Array | string
576
+ */
577
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
578
+ 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: StringOutputFormat): string;
579
+ /**
580
+ * @param message
581
+ * @param additional_data
582
+ * @param secret_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES bytes)
583
+ * @param public_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES bytes)
584
+ * @param key (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES bytes)
585
+ * @param outputFormat Output format (default: Uint8Array)
586
+ * @returns Uint8Array | string (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES bytes)
587
+ */
588
+ 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?: Uint8ArrayOutputFormat | null): Uint8Array;
589
+ 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: StringOutputFormat): string;
590
+ /**
591
+ * @param message
592
+ * @param additional_data
593
+ * @param secret_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES bytes)
594
+ * @param public_nonce (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES bytes)
595
+ * @param key (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES bytes)
596
+ * @param outputFormat Output format (default: Uint8Array)
597
+ * @returns {ciphertext, mac}
598
+ */
599
+ 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?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
600
+ 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: StringOutputFormat): { ciphertext: string; mac: string };
601
+ /**
602
+ * @param outputFormat Output format (default: Uint8Array)
603
+ * @returns Uint8Array | string (CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES bytes)
604
+ */
605
+ export function crypto_aead_xchacha20poly1305_ietf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
606
+ export function crypto_aead_xchacha20poly1305_ietf_keygen(outputFormat: StringOutputFormat): string;
607
+ /**
608
+ * @param message
609
+ * @param key (CRYPTO_AUTH_KEYBYTES bytes)
610
+ * @param outputFormat Output format (default: Uint8Array)
611
+ * @returns Uint8Array | string (CRYPTO_AUTH_BYTES bytes)
612
+ */
613
+ export function crypto_auth(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
614
+ export function crypto_auth(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
615
+ /**
616
+ * @param message
617
+ * @param key (CRYPTO_AUTH_HMACSHA256_KEYBYTES bytes)
618
+ * @param outputFormat Output format (default: Uint8Array)
619
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA256_BYTES bytes)
620
+ */
621
+ export function crypto_auth_hmacsha256(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
622
+ export function crypto_auth_hmacsha256(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
623
+ /**
624
+ * @param state_address
625
+ * @param outputFormat Output format (default: Uint8Array)
626
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA256_BYTES bytes)
627
+ */
628
+ export function crypto_auth_hmacsha256_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
629
+ export function crypto_auth_hmacsha256_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
630
+ /**
631
+ * @param key
632
+ * @returns StateAddress
633
+ */
634
+ export function crypto_auth_hmacsha256_init(key: Uint8Array | string | null): StateAddress;
635
+ /**
636
+ * @param outputFormat Output format (default: Uint8Array)
637
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA256_KEYBYTES bytes)
638
+ */
639
+ export function crypto_auth_hmacsha256_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
640
+ export function crypto_auth_hmacsha256_keygen(outputFormat: StringOutputFormat): string;
641
+ /**
642
+ * @param state_address
643
+ * @param message_chunk
644
+ */
645
+ export function crypto_auth_hmacsha256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
646
+ /**
647
+ * @param tag (CRYPTO_AUTH_HMACSHA256_BYTES bytes)
648
+ * @param message
649
+ * @param key (CRYPTO_AUTH_HMACSHA256_KEYBYTES bytes)
650
+ * @returns boolean
651
+ */
652
+ export function crypto_auth_hmacsha256_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
653
+ /**
654
+ * @param message
655
+ * @param key (CRYPTO_AUTH_HMACSHA512_KEYBYTES bytes)
656
+ * @param outputFormat Output format (default: Uint8Array)
657
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512_BYTES bytes)
658
+ */
659
+ export function crypto_auth_hmacsha512(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
660
+ export function crypto_auth_hmacsha512(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
661
+ /**
662
+ * @param message
663
+ * @param key (CRYPTO_AUTH_HMACSHA512256_KEYBYTES bytes)
664
+ * @param outputFormat Output format (default: Uint8Array)
665
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512256_BYTES bytes)
666
+ */
667
+ export function crypto_auth_hmacsha512256(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
668
+ export function crypto_auth_hmacsha512256(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
669
+ /**
670
+ * @param state_address
671
+ * @param outputFormat Output format (default: Uint8Array)
672
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512256_BYTES bytes)
673
+ */
674
+ export function crypto_auth_hmacsha512256_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
675
+ export function crypto_auth_hmacsha512256_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
676
+ /**
677
+ * @param key
678
+ * @returns StateAddress
679
+ */
680
+ export function crypto_auth_hmacsha512256_init(key: Uint8Array | string | null): StateAddress;
681
+ /**
682
+ * @param outputFormat Output format (default: Uint8Array)
683
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512256_KEYBYTES bytes)
684
+ */
685
+ export function crypto_auth_hmacsha512256_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
686
+ export function crypto_auth_hmacsha512256_keygen(outputFormat: StringOutputFormat): string;
687
+ /**
688
+ * @param state_address
689
+ * @param message_chunk
690
+ */
691
+ export function crypto_auth_hmacsha512256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
692
+ /**
693
+ * @param tag (CRYPTO_AUTH_HMACSHA512256_BYTES bytes)
694
+ * @param message
695
+ * @param key (CRYPTO_AUTH_HMACSHA512256_KEYBYTES bytes)
696
+ * @returns boolean
697
+ */
698
+ export function crypto_auth_hmacsha512256_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
699
+ /**
700
+ * @param state_address
701
+ * @param outputFormat Output format (default: Uint8Array)
702
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512_BYTES bytes)
703
+ */
704
+ export function crypto_auth_hmacsha512_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
705
+ export function crypto_auth_hmacsha512_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
706
+ /**
707
+ * @param key
708
+ * @returns StateAddress
709
+ */
710
+ export function crypto_auth_hmacsha512_init(key: Uint8Array | string | null): StateAddress;
711
+ /**
712
+ * @param outputFormat Output format (default: Uint8Array)
713
+ * @returns Uint8Array | string (CRYPTO_AUTH_HMACSHA512_KEYBYTES bytes)
714
+ */
715
+ export function crypto_auth_hmacsha512_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
716
+ export function crypto_auth_hmacsha512_keygen(outputFormat: StringOutputFormat): string;
717
+ /**
718
+ * @param state_address
719
+ * @param message_chunk
720
+ */
721
+ export function crypto_auth_hmacsha512_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
722
+ /**
723
+ * @param tag (CRYPTO_AUTH_HMACSHA512_BYTES bytes)
724
+ * @param message
725
+ * @param key (CRYPTO_AUTH_HMACSHA512_KEYBYTES bytes)
726
+ * @returns boolean
727
+ */
728
+ export function crypto_auth_hmacsha512_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
729
+ /**
730
+ * @param outputFormat Output format (default: Uint8Array)
731
+ * @returns Uint8Array | string (CRYPTO_AUTH_KEYBYTES bytes)
732
+ */
733
+ export function crypto_auth_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
734
+ export function crypto_auth_keygen(outputFormat: StringOutputFormat): string;
735
+ /**
736
+ * @param tag (CRYPTO_AUTH_BYTES bytes)
737
+ * @param message
738
+ * @param key (CRYPTO_AUTH_KEYBYTES bytes)
739
+ * @returns boolean
740
+ */
741
+ export function crypto_auth_verify(tag: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
742
+ /**
743
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
744
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
745
+ * @param outputFormat Output format (default: Uint8Array)
746
+ * @returns Uint8Array | string (CRYPTO_BOX_BEFORENMBYTES bytes)
747
+ */
748
+ export function crypto_box_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
749
+ export function crypto_box_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
750
+ /**
751
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
752
+ * @param privateKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
753
+ * @param outputFormat Output format (default: Uint8Array)
754
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_BEFORENMBYTES bytes)
755
+ */
756
+ export function crypto_box_curve25519xchacha20poly1305_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
757
+ export function crypto_box_curve25519xchacha20poly1305_beforenm(publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
758
+ /**
759
+ * @param message
760
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
761
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
762
+ * @param privateKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
763
+ * @param outputFormat Output format (default: Uint8Array)
764
+ * @returns {ciphertext, mac}
765
+ */
766
+ export function crypto_box_curve25519xchacha20poly1305_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
767
+ export function crypto_box_curve25519xchacha20poly1305_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): { ciphertext: string; mac: string };
768
+ /**
769
+ * @param message
770
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
771
+ * @param sharedKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_BEFORENMBYTES bytes)
772
+ * @param outputFormat Output format (default: Uint8Array)
773
+ * @returns {ciphertext, mac}
774
+ */
775
+ export function crypto_box_curve25519xchacha20poly1305_detached_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
776
+ export function crypto_box_curve25519xchacha20poly1305_detached_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): { ciphertext: string; mac: string };
777
+ /**
778
+ * @param message
779
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
780
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
781
+ * @param privateKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
782
+ * @param outputFormat Output format (default: Uint8Array)
783
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
784
+ */
785
+ export function crypto_box_curve25519xchacha20poly1305_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
786
+ export function crypto_box_curve25519xchacha20poly1305_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
787
+ /**
788
+ * @param message
789
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
790
+ * @param sharedKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_BEFORENMBYTES bytes)
791
+ * @param outputFormat Output format (default: Uint8Array)
792
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
793
+ */
794
+ export function crypto_box_curve25519xchacha20poly1305_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
795
+ export function crypto_box_curve25519xchacha20poly1305_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): string;
796
+ /**
797
+ * @param outputFormat Output format (default: Uint8Array)
798
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
799
+ */
800
+ export function crypto_box_curve25519xchacha20poly1305_keypair(outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
801
+ export function crypto_box_curve25519xchacha20poly1305_keypair(outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
802
+ /**
803
+ * @param ciphertext
804
+ * @param mac (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
805
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
806
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
807
+ * @param privateKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
808
+ * @param outputFormat Output format (default: Uint8Array)
809
+ * @returns Uint8Array | string
810
+ */
811
+ export function crypto_box_curve25519xchacha20poly1305_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
812
+ export function crypto_box_curve25519xchacha20poly1305_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
813
+ /**
814
+ * @param ciphertext
815
+ * @param mac (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
816
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
817
+ * @param sharedKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_BEFORENMBYTES bytes)
818
+ * @param outputFormat Output format (default: Uint8Array)
819
+ * @returns Uint8Array | string
820
+ */
821
+ export function crypto_box_curve25519xchacha20poly1305_open_detached_afternm(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
822
+ export function crypto_box_curve25519xchacha20poly1305_open_detached_afternm(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): string;
823
+ /**
824
+ * @param ciphertext
825
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
826
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
827
+ * @param privateKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
828
+ * @param outputFormat Output format (default: Uint8Array)
829
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
830
+ */
831
+ export function crypto_box_curve25519xchacha20poly1305_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
832
+ export function crypto_box_curve25519xchacha20poly1305_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
833
+ /**
834
+ * @param ciphertext (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
835
+ * @param nonce (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_NONCEBYTES bytes)
836
+ * @param sharedKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_BEFORENMBYTES bytes)
837
+ * @param outputFormat Output format (default: Uint8Array)
838
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_MACBYTES bytes)
839
+ */
840
+ export function crypto_box_curve25519xchacha20poly1305_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
841
+ export function crypto_box_curve25519xchacha20poly1305_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): string;
842
+ /**
843
+ * @param message
844
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
845
+ * @param outputFormat Output format (default: Uint8Array)
846
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SEALBYTES bytes)
847
+ */
848
+ export function crypto_box_curve25519xchacha20poly1305_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
849
+ export function crypto_box_curve25519xchacha20poly1305_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat: StringOutputFormat): string;
850
+ /**
851
+ * @param ciphertext
852
+ * @param publicKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
853
+ * @param secretKey (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SECRETKEYBYTES bytes)
854
+ * @param outputFormat Output format (default: Uint8Array)
855
+ * @returns Uint8Array | string (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SEALBYTES bytes)
856
+ */
857
+ export function crypto_box_curve25519xchacha20poly1305_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
858
+ export function crypto_box_curve25519xchacha20poly1305_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array, outputFormat: StringOutputFormat): string;
859
+ /**
860
+ * @param seed (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_SEEDBYTES bytes)
861
+ * @param outputFormat Output format (default: Uint8Array)
862
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_PUBLICKEYBYTES bytes)
863
+ */
864
+ export function crypto_box_curve25519xchacha20poly1305_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
865
+ export function crypto_box_curve25519xchacha20poly1305_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
866
+ /**
867
+ * @param message
868
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
869
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
870
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
871
+ * @param outputFormat Output format (default: Uint8Array)
872
+ * @returns {ciphertext, mac}
873
+ */
874
+ export function crypto_box_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { ciphertext: Uint8Array; mac: Uint8Array };
875
+ export function crypto_box_detached(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): { ciphertext: string; mac: string };
876
+ /**
877
+ * @param message
878
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
879
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
880
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
881
+ * @param outputFormat Output format (default: Uint8Array)
882
+ * @returns Uint8Array | string (CRYPTO_BOX_MACBYTES bytes)
883
+ */
884
+ export function crypto_box_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
885
+ export function crypto_box_easy(message: Uint8Array | string, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
886
+ /**
887
+ * @param message
888
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
889
+ * @param sharedKey (CRYPTO_BOX_BEFORENMBYTES bytes)
890
+ * @param outputFormat Output format (default: Uint8Array)
891
+ * @returns Uint8Array | string (CRYPTO_BOX_MACBYTES bytes)
892
+ */
893
+ export function crypto_box_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
894
+ export function crypto_box_easy_afternm(message: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): string;
895
+ /**
896
+ * @param outputFormat Output format (default: Uint8Array)
897
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_BOX_PUBLICKEYBYTES bytes)
898
+ */
899
+ export function crypto_box_keypair(outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
900
+ export function crypto_box_keypair(outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
901
+ /**
902
+ * @param ciphertext
903
+ * @param mac (CRYPTO_BOX_MACBYTES bytes)
904
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
905
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
906
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
907
+ * @param outputFormat Output format (default: Uint8Array)
908
+ * @returns Uint8Array | string
909
+ */
910
+ export function crypto_box_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
911
+ export function crypto_box_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
912
+ /**
913
+ * @param ciphertext
914
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
915
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
916
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
917
+ * @param outputFormat Output format (default: Uint8Array)
918
+ * @returns Uint8Array | string (CRYPTO_BOX_MACBYTES bytes)
919
+ */
920
+ export function crypto_box_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
921
+ export function crypto_box_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
922
+ /**
923
+ * @param ciphertext (CRYPTO_BOX_MACBYTES bytes)
924
+ * @param nonce (CRYPTO_BOX_NONCEBYTES bytes)
925
+ * @param sharedKey (CRYPTO_BOX_BEFORENMBYTES bytes)
926
+ * @param outputFormat Output format (default: Uint8Array)
927
+ * @returns Uint8Array | string (CRYPTO_BOX_MACBYTES bytes)
928
+ */
929
+ export function crypto_box_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
930
+ export function crypto_box_open_easy_afternm(ciphertext: Uint8Array | string, nonce: Uint8Array, sharedKey: Uint8Array, outputFormat: StringOutputFormat): string;
931
+ /**
932
+ * @param message
933
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
934
+ * @param outputFormat Output format (default: Uint8Array)
935
+ * @returns Uint8Array | string (CRYPTO_BOX_SEALBYTES bytes)
936
+ */
937
+ export function crypto_box_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
938
+ export function crypto_box_seal(message: Uint8Array | string, publicKey: Uint8Array, outputFormat: StringOutputFormat): string;
939
+ /**
940
+ * @param ciphertext
941
+ * @param publicKey (CRYPTO_BOX_PUBLICKEYBYTES bytes)
942
+ * @param privateKey (CRYPTO_BOX_SECRETKEYBYTES bytes)
943
+ * @param outputFormat Output format (default: Uint8Array)
944
+ * @returns Uint8Array | string (CRYPTO_BOX_SEALBYTES bytes)
945
+ */
946
+ export function crypto_box_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
947
+ export function crypto_box_seal_open(ciphertext: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
948
+ /**
949
+ * @param seed (CRYPTO_BOX_SEEDBYTES bytes)
950
+ * @param outputFormat Output format (default: Uint8Array)
951
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_BOX_PUBLICKEYBYTES bytes)
952
+ */
953
+ export function crypto_box_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
954
+ export function crypto_box_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
955
+ /**
956
+ * @param p (CRYPTO_CORE_ED25519_BYTES bytes)
957
+ * @param q (CRYPTO_CORE_ED25519_BYTES bytes)
958
+ * @param outputFormat Output format (default: Uint8Array)
959
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_BYTES bytes)
960
+ */
961
+ export function crypto_core_ed25519_add(p: Uint8Array, q: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
962
+ export function crypto_core_ed25519_add(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
963
+ /**
964
+ * @param r
965
+ * @param outputFormat Output format (default: Uint8Array)
966
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_BYTES bytes)
967
+ */
968
+ export function crypto_core_ed25519_from_hash(r: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
969
+ export function crypto_core_ed25519_from_hash(r: Uint8Array | string, outputFormat: StringOutputFormat): string;
970
+ /**
971
+ * @param r
972
+ * @param outputFormat Output format (default: Uint8Array)
973
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_BYTES bytes)
974
+ */
975
+ export function crypto_core_ed25519_from_uniform(r: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
976
+ export function crypto_core_ed25519_from_uniform(r: Uint8Array | string, outputFormat: StringOutputFormat): string;
977
+ /**
978
+ * @param repr (CRYPTO_CORE_ED25519_BYTES bytes)
979
+ * @returns boolean
980
+ */
981
+ export function crypto_core_ed25519_is_valid_point(repr: Uint8Array): boolean;
982
+ /**
983
+ * @param outputFormat Output format (default: Uint8Array)
984
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_BYTES bytes)
985
+ */
986
+ export function crypto_core_ed25519_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
987
+ export function crypto_core_ed25519_random(outputFormat: StringOutputFormat): string;
988
+ /**
989
+ * @param x (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
990
+ * @param y (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
991
+ * @param outputFormat Output format (default: Uint8Array)
992
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
993
+ */
994
+ export function crypto_core_ed25519_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
995
+ export function crypto_core_ed25519_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
996
+ /**
997
+ * @param s (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
998
+ * @param outputFormat Output format (default: Uint8Array)
999
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1000
+ */
1001
+ export function crypto_core_ed25519_scalar_complement(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1002
+ export function crypto_core_ed25519_scalar_complement(s: Uint8Array, outputFormat: StringOutputFormat): string;
1003
+ /**
1004
+ * @param s (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1005
+ * @param outputFormat Output format (default: Uint8Array)
1006
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1007
+ */
1008
+ export function crypto_core_ed25519_scalar_invert(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1009
+ export function crypto_core_ed25519_scalar_invert(s: Uint8Array, outputFormat: StringOutputFormat): string;
1010
+ /**
1011
+ * @param x (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1012
+ * @param y (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1013
+ * @param outputFormat Output format (default: Uint8Array)
1014
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1015
+ */
1016
+ export function crypto_core_ed25519_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1017
+ export function crypto_core_ed25519_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
1018
+ /**
1019
+ * @param s (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1020
+ * @param outputFormat Output format (default: Uint8Array)
1021
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1022
+ */
1023
+ export function crypto_core_ed25519_scalar_negate(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1024
+ export function crypto_core_ed25519_scalar_negate(s: Uint8Array, outputFormat: StringOutputFormat): string;
1025
+ /**
1026
+ * @param outputFormat Output format (default: Uint8Array)
1027
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1028
+ */
1029
+ export function crypto_core_ed25519_scalar_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1030
+ export function crypto_core_ed25519_scalar_random(outputFormat: StringOutputFormat): string;
1031
+ /**
1032
+ * @param sample (CRYPTO_CORE_ED25519_NONREDUCEDSCALARBYTES bytes)
1033
+ * @param outputFormat Output format (default: Uint8Array)
1034
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1035
+ */
1036
+ export function crypto_core_ed25519_scalar_reduce(sample: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1037
+ export function crypto_core_ed25519_scalar_reduce(sample: Uint8Array, outputFormat: StringOutputFormat): string;
1038
+ /**
1039
+ * @param x (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1040
+ * @param y (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1041
+ * @param outputFormat Output format (default: Uint8Array)
1042
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_SCALARBYTES bytes)
1043
+ */
1044
+ export function crypto_core_ed25519_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1045
+ export function crypto_core_ed25519_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
1046
+ /**
1047
+ * @param p (CRYPTO_CORE_ED25519_BYTES bytes)
1048
+ * @param q (CRYPTO_CORE_ED25519_BYTES bytes)
1049
+ * @param outputFormat Output format (default: Uint8Array)
1050
+ * @returns Uint8Array | string (CRYPTO_CORE_ED25519_BYTES bytes)
1051
+ */
1052
+ export function crypto_core_ed25519_sub(p: Uint8Array, q: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1053
+ export function crypto_core_ed25519_sub(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
1054
+ /**
1055
+ * @param input (CRYPTO_CORE_HCHACHA20_INPUTBYTES bytes)
1056
+ * @param privateKey (CRYPTO_CORE_HCHACHA20_KEYBYTES bytes)
1057
+ * @param constant (CRYPTO_CORE_HCHACHA20_CONSTBYTES bytes)
1058
+ * @param outputFormat Output format (default: Uint8Array)
1059
+ * @returns Uint8Array | string (CRYPTO_CORE_HCHACHA20_OUTPUTBYTES bytes)
1060
+ */
1061
+ export function crypto_core_hchacha20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1062
+ export function crypto_core_hchacha20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat: StringOutputFormat): string;
1063
+ /**
1064
+ * @param input (CRYPTO_CORE_HSALSA20_INPUTBYTES bytes)
1065
+ * @param privateKey (CRYPTO_CORE_HSALSA20_KEYBYTES bytes)
1066
+ * @param constant (CRYPTO_CORE_HSALSA20_CONSTBYTES bytes)
1067
+ * @param outputFormat Output format (default: Uint8Array)
1068
+ * @returns Uint8Array | string (CRYPTO_CORE_HSALSA20_OUTPUTBYTES bytes)
1069
+ */
1070
+ export function crypto_core_hsalsa20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1071
+ export function crypto_core_hsalsa20(input: Uint8Array, privateKey: Uint8Array, constant: Uint8Array | string | null, outputFormat: StringOutputFormat): string;
1072
+ /**
1073
+ * @param p (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1074
+ * @param q (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1075
+ * @param outputFormat Output format (default: Uint8Array)
1076
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1077
+ */
1078
+ export function crypto_core_ristretto255_add(p: Uint8Array, q: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1079
+ export function crypto_core_ristretto255_add(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
1080
+ /**
1081
+ * @param r
1082
+ * @param outputFormat Output format (default: Uint8Array)
1083
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1084
+ */
1085
+ export function crypto_core_ristretto255_from_hash(r: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1086
+ export function crypto_core_ristretto255_from_hash(r: Uint8Array | string, outputFormat: StringOutputFormat): string;
1087
+ /**
1088
+ * @param repr (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1089
+ * @returns boolean
1090
+ */
1091
+ export function crypto_core_ristretto255_is_valid_point(repr: Uint8Array): boolean;
1092
+ /**
1093
+ * @param outputFormat Output format (default: Uint8Array)
1094
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1095
+ */
1096
+ export function crypto_core_ristretto255_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1097
+ export function crypto_core_ristretto255_random(outputFormat: StringOutputFormat): string;
1098
+ /**
1099
+ * @param x (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1100
+ * @param y (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1101
+ * @param outputFormat Output format (default: Uint8Array)
1102
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1103
+ */
1104
+ export function crypto_core_ristretto255_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1105
+ export function crypto_core_ristretto255_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
1106
+ /**
1107
+ * @param s (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1108
+ * @param outputFormat Output format (default: Uint8Array)
1109
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1110
+ */
1111
+ export function crypto_core_ristretto255_scalar_complement(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1112
+ export function crypto_core_ristretto255_scalar_complement(s: Uint8Array, outputFormat: StringOutputFormat): string;
1113
+ /**
1114
+ * @param s (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1115
+ * @param outputFormat Output format (default: Uint8Array)
1116
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1117
+ */
1118
+ export function crypto_core_ristretto255_scalar_invert(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1119
+ export function crypto_core_ristretto255_scalar_invert(s: Uint8Array, outputFormat: StringOutputFormat): string;
1120
+ /**
1121
+ * @param x (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1122
+ * @param y (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1123
+ * @param outputFormat Output format (default: Uint8Array)
1124
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1125
+ */
1126
+ export function crypto_core_ristretto255_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1127
+ export function crypto_core_ristretto255_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
1128
+ /**
1129
+ * @param s (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1130
+ * @param outputFormat Output format (default: Uint8Array)
1131
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1132
+ */
1133
+ export function crypto_core_ristretto255_scalar_negate(s: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1134
+ export function crypto_core_ristretto255_scalar_negate(s: Uint8Array, outputFormat: StringOutputFormat): string;
1135
+ /**
1136
+ * @param outputFormat Output format (default: Uint8Array)
1137
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1138
+ */
1139
+ export function crypto_core_ristretto255_scalar_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1140
+ export function crypto_core_ristretto255_scalar_random(outputFormat: StringOutputFormat): string;
1141
+ /**
1142
+ * @param sample (CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES bytes)
1143
+ * @param outputFormat Output format (default: Uint8Array)
1144
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1145
+ */
1146
+ export function crypto_core_ristretto255_scalar_reduce(sample: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1147
+ export function crypto_core_ristretto255_scalar_reduce(sample: Uint8Array, outputFormat: StringOutputFormat): string;
1148
+ /**
1149
+ * @param x (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1150
+ * @param y (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1151
+ * @param outputFormat Output format (default: Uint8Array)
1152
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1153
+ */
1154
+ export function crypto_core_ristretto255_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1155
+ export function crypto_core_ristretto255_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
1156
+ /**
1157
+ * @param p (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1158
+ * @param q (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1159
+ * @param outputFormat Output format (default: Uint8Array)
1160
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1161
+ */
1162
+ export function crypto_core_ristretto255_sub(p: Uint8Array, q: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1163
+ export function crypto_core_ristretto255_sub(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
1164
+ /**
1165
+ * @param hash_length
1166
+ * @param message
1167
+ * @param key
1168
+ * @param outputFormat Output format (default: Uint8Array)
1169
+ * @returns Uint8Array | string
1170
+ */
1171
+ export function crypto_generichash(hash_length: number, message: Uint8Array | string, key: Uint8Array | string | null, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1172
+ export function crypto_generichash(hash_length: number, message: Uint8Array | string, key: Uint8Array | string | null, outputFormat: StringOutputFormat): string;
1173
+ /**
1174
+ * @param subkey_len
1175
+ * @param key
1176
+ * @param id (CRYPTO_GENERICHASH_BLAKE2B_SALTBYTES bytes)
1177
+ * @param ctx (CRYPTO_GENERICHASH_BLAKE2B_PERSONALBYTES bytes)
1178
+ * @param outputFormat Output format (default: Uint8Array)
1179
+ * @returns Uint8Array | string
1180
+ */
1181
+ export function crypto_generichash_blake2b_salt_personal(subkey_len: number, key: Uint8Array | string | null, id: Uint8Array | null, ctx: Uint8Array | null, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1182
+ export function crypto_generichash_blake2b_salt_personal(subkey_len: number, key: Uint8Array | string | null, id: Uint8Array | null, ctx: Uint8Array | null, outputFormat: StringOutputFormat): string;
1183
+ /**
1184
+ * @param state_address
1185
+ * @param hash_length
1186
+ * @param outputFormat Output format (default: Uint8Array)
1187
+ * @returns Uint8Array | string
1188
+ */
1189
+ export function crypto_generichash_final(state_address: StateAddress, hash_length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1190
+ export function crypto_generichash_final(state_address: StateAddress, hash_length: number, outputFormat: StringOutputFormat): string;
1191
+ /**
1192
+ * @param key
1193
+ * @param hash_length
1194
+ * @returns StateAddress
1195
+ */
1196
+ export function crypto_generichash_init(key: Uint8Array | string | null, hash_length: number): StateAddress;
1197
+ /**
1198
+ * @param outputFormat Output format (default: Uint8Array)
1199
+ * @returns Uint8Array | string (CRYPTO_GENERICHASH_KEYBYTES bytes)
1200
+ */
1201
+ export function crypto_generichash_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1202
+ export function crypto_generichash_keygen(outputFormat: StringOutputFormat): string;
1203
+ /**
1204
+ * @param state_address
1205
+ * @param message_chunk
1206
+ */
1207
+ export function crypto_generichash_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1208
+ /**
1209
+ * @param message
1210
+ * @param outputFormat Output format (default: Uint8Array)
1211
+ * @returns Uint8Array | string (CRYPTO_HASH_BYTES bytes)
1212
+ */
1213
+ export function crypto_hash(message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1214
+ export function crypto_hash(message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1215
+ /**
1216
+ * @param message
1217
+ * @param outputFormat Output format (default: Uint8Array)
1218
+ * @returns Uint8Array | string (CRYPTO_HASH_SHA256_BYTES bytes)
1219
+ */
1220
+ export function crypto_hash_sha256(message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1221
+ export function crypto_hash_sha256(message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1222
+ /**
1223
+ * @param state_address
1224
+ * @param outputFormat Output format (default: Uint8Array)
1225
+ * @returns Uint8Array | string (CRYPTO_HASH_SHA256_BYTES bytes)
1226
+ */
1227
+ export function crypto_hash_sha256_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1228
+ export function crypto_hash_sha256_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
1229
+ /**
1230
+ * @returns StateAddress
1231
+ */
1232
+ export function crypto_hash_sha256_init(): StateAddress;
1233
+ /**
1234
+ * @param state_address
1235
+ * @param message_chunk
1236
+ */
1237
+ export function crypto_hash_sha256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1238
+ /**
1239
+ * @param message
1240
+ * @param outputFormat Output format (default: Uint8Array)
1241
+ * @returns Uint8Array | string (CRYPTO_HASH_SHA512_BYTES bytes)
1242
+ */
1243
+ export function crypto_hash_sha512(message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1244
+ export function crypto_hash_sha512(message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1245
+ /**
1246
+ * @param state_address
1247
+ * @param outputFormat Output format (default: Uint8Array)
1248
+ * @returns Uint8Array | string (CRYPTO_HASH_SHA512_BYTES bytes)
1249
+ */
1250
+ export function crypto_hash_sha512_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1251
+ export function crypto_hash_sha512_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
1252
+ /**
1253
+ * @returns StateAddress
1254
+ */
1255
+ export function crypto_hash_sha512_init(): StateAddress;
1256
+ /**
1257
+ * @param state_address
1258
+ * @param message_chunk
1259
+ */
1260
+ export function crypto_hash_sha512_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1261
+ /**
1262
+ * @param input (CRYPTO_IPCRYPT_BYTES bytes)
1263
+ * @param key (CRYPTO_IPCRYPT_KEYBYTES bytes)
1264
+ * @param outputFormat Output format (default: Uint8Array)
1265
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_BYTES bytes)
1266
+ */
1267
+ export function crypto_ipcrypt_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1268
+ export function crypto_ipcrypt_decrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1269
+ /**
1270
+ * @param input (CRYPTO_IPCRYPT_BYTES bytes)
1271
+ * @param key (CRYPTO_IPCRYPT_KEYBYTES bytes)
1272
+ * @param outputFormat Output format (default: Uint8Array)
1273
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_BYTES bytes)
1274
+ */
1275
+ export function crypto_ipcrypt_encrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1276
+ export function crypto_ipcrypt_encrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1277
+ /**
1278
+ * @param outputFormat Output format (default: Uint8Array)
1279
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_KEYBYTES bytes)
1280
+ */
1281
+ export function crypto_ipcrypt_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1282
+ export function crypto_ipcrypt_keygen(outputFormat: StringOutputFormat): string;
1283
+ /**
1284
+ * @param input (CRYPTO_IPCRYPT_ND_OUTPUTBYTES bytes)
1285
+ * @param key (CRYPTO_IPCRYPT_ND_KEYBYTES bytes)
1286
+ * @param outputFormat Output format (default: Uint8Array)
1287
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_ND_INPUTBYTES bytes)
1288
+ */
1289
+ export function crypto_ipcrypt_nd_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1290
+ export function crypto_ipcrypt_nd_decrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1291
+ /**
1292
+ * @param input (CRYPTO_IPCRYPT_ND_INPUTBYTES bytes)
1293
+ * @param tweak (CRYPTO_IPCRYPT_ND_TWEAKBYTES bytes)
1294
+ * @param key (CRYPTO_IPCRYPT_ND_KEYBYTES bytes)
1295
+ * @param outputFormat Output format (default: Uint8Array)
1296
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_ND_OUTPUTBYTES bytes)
1297
+ */
1298
+ export function crypto_ipcrypt_nd_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1299
+ export function crypto_ipcrypt_nd_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1300
+ /**
1301
+ * @param outputFormat Output format (default: Uint8Array)
1302
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_ND_KEYBYTES bytes)
1303
+ */
1304
+ export function crypto_ipcrypt_nd_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1305
+ export function crypto_ipcrypt_nd_keygen(outputFormat: StringOutputFormat): string;
1306
+ /**
1307
+ * @param input (CRYPTO_IPCRYPT_NDX_OUTPUTBYTES bytes)
1308
+ * @param key (CRYPTO_IPCRYPT_NDX_KEYBYTES bytes)
1309
+ * @param outputFormat Output format (default: Uint8Array)
1310
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_NDX_INPUTBYTES bytes)
1311
+ */
1312
+ export function crypto_ipcrypt_ndx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1313
+ export function crypto_ipcrypt_ndx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1314
+ /**
1315
+ * @param input (CRYPTO_IPCRYPT_NDX_INPUTBYTES bytes)
1316
+ * @param tweak (CRYPTO_IPCRYPT_NDX_TWEAKBYTES bytes)
1317
+ * @param key (CRYPTO_IPCRYPT_NDX_KEYBYTES bytes)
1318
+ * @param outputFormat Output format (default: Uint8Array)
1319
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_NDX_OUTPUTBYTES bytes)
1320
+ */
1321
+ export function crypto_ipcrypt_ndx_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1322
+ export function crypto_ipcrypt_ndx_encrypt(input: Uint8Array, tweak: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1323
+ /**
1324
+ * @param outputFormat Output format (default: Uint8Array)
1325
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_NDX_KEYBYTES bytes)
1326
+ */
1327
+ export function crypto_ipcrypt_ndx_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1328
+ export function crypto_ipcrypt_ndx_keygen(outputFormat: StringOutputFormat): string;
1329
+ /**
1330
+ * @param input (CRYPTO_IPCRYPT_PFX_BYTES bytes)
1331
+ * @param key (CRYPTO_IPCRYPT_PFX_KEYBYTES bytes)
1332
+ * @param outputFormat Output format (default: Uint8Array)
1333
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_PFX_BYTES bytes)
1334
+ */
1335
+ export function crypto_ipcrypt_pfx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1336
+ export function crypto_ipcrypt_pfx_decrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1337
+ /**
1338
+ * @param input (CRYPTO_IPCRYPT_PFX_BYTES bytes)
1339
+ * @param key (CRYPTO_IPCRYPT_PFX_KEYBYTES bytes)
1340
+ * @param outputFormat Output format (default: Uint8Array)
1341
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_PFX_BYTES bytes)
1342
+ */
1343
+ export function crypto_ipcrypt_pfx_encrypt(input: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1344
+ export function crypto_ipcrypt_pfx_encrypt(input: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1345
+ /**
1346
+ * @param outputFormat Output format (default: Uint8Array)
1347
+ * @returns Uint8Array | string (CRYPTO_IPCRYPT_PFX_KEYBYTES bytes)
1348
+ */
1349
+ export function crypto_ipcrypt_pfx_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1350
+ export function crypto_ipcrypt_pfx_keygen(outputFormat: StringOutputFormat): string;
1351
+ /**
1352
+ * @param subkey_len
1353
+ * @param subkey_id
1354
+ * @param ctx (CRYPTO_KDF_CONTEXTBYTES bytes)
1355
+ * @param key (CRYPTO_KDF_KEYBYTES bytes)
1356
+ * @param outputFormat Output format (default: Uint8Array)
1357
+ * @returns Uint8Array | string
1358
+ */
1359
+ export function crypto_kdf_derive_from_key(subkey_len: number, subkey_id: number | bigint, ctx: string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1360
+ export function crypto_kdf_derive_from_key(subkey_len: number, subkey_id: number | bigint, ctx: string, key: Uint8Array, outputFormat: StringOutputFormat): string;
1361
+ /**
1362
+ * @param outputFormat Output format (default: Uint8Array)
1363
+ * @returns Uint8Array | string (CRYPTO_KDF_KEYBYTES bytes)
1364
+ */
1365
+ export function crypto_kdf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1366
+ export function crypto_kdf_keygen(outputFormat: StringOutputFormat): string;
1367
+ /**
1368
+ * @param clientPublicKey (CRYPTO_KX_PUBLICKEYBYTES bytes)
1369
+ * @param clientSecretKey (CRYPTO_KX_SECRETKEYBYTES bytes)
1370
+ * @param serverPublicKey (CRYPTO_KX_PUBLICKEYBYTES bytes)
1371
+ * @param outputFormat Output format (default: Uint8Array)
1372
+ * @returns {sharedRx, sharedTx} (CRYPTO_KX_SESSIONKEYBYTES bytes)
1373
+ */
1374
+ export function crypto_kx_client_session_keys(clientPublicKey: Uint8Array, clientSecretKey: Uint8Array, serverPublicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { sharedRx: Uint8Array; sharedTx: Uint8Array };
1375
+ export function crypto_kx_client_session_keys(clientPublicKey: Uint8Array, clientSecretKey: Uint8Array, serverPublicKey: Uint8Array, outputFormat: StringOutputFormat): { sharedRx: string; sharedTx: string };
1376
+ /**
1377
+ * @param outputFormat Output format (default: Uint8Array)
1378
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_KX_PUBLICKEYBYTES bytes)
1379
+ */
1380
+ export function crypto_kx_keypair(outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
1381
+ export function crypto_kx_keypair(outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
1382
+ /**
1383
+ * @param seed (CRYPTO_KX_SEEDBYTES bytes)
1384
+ * @param outputFormat Output format (default: Uint8Array)
1385
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_KX_PUBLICKEYBYTES bytes)
1386
+ */
1387
+ export function crypto_kx_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
1388
+ export function crypto_kx_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
1389
+ /**
1390
+ * @param serverPublicKey (CRYPTO_KX_PUBLICKEYBYTES bytes)
1391
+ * @param serverSecretKey (CRYPTO_KX_SECRETKEYBYTES bytes)
1392
+ * @param clientPublicKey (CRYPTO_KX_PUBLICKEYBYTES bytes)
1393
+ * @param outputFormat Output format (default: Uint8Array)
1394
+ * @returns {sharedRx, sharedTx} (CRYPTO_KX_SESSIONKEYBYTES bytes)
1395
+ */
1396
+ export function crypto_kx_server_session_keys(serverPublicKey: Uint8Array, serverSecretKey: Uint8Array, clientPublicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { sharedRx: Uint8Array; sharedTx: Uint8Array };
1397
+ export function crypto_kx_server_session_keys(serverPublicKey: Uint8Array, serverSecretKey: Uint8Array, clientPublicKey: Uint8Array, outputFormat: StringOutputFormat): { sharedRx: string; sharedTx: string };
1398
+ /**
1399
+ * @param message
1400
+ * @param key (CRYPTO_ONETIMEAUTH_KEYBYTES bytes)
1401
+ * @param outputFormat Output format (default: Uint8Array)
1402
+ * @returns Uint8Array | string (CRYPTO_ONETIMEAUTH_BYTES bytes)
1403
+ */
1404
+ export function crypto_onetimeauth(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1405
+ export function crypto_onetimeauth(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
1406
+ /**
1407
+ * @param state_address
1408
+ * @param outputFormat Output format (default: Uint8Array)
1409
+ * @returns Uint8Array | string (CRYPTO_ONETIMEAUTH_BYTES bytes)
1410
+ */
1411
+ export function crypto_onetimeauth_final(state_address: StateAddress, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1412
+ export function crypto_onetimeauth_final(state_address: StateAddress, outputFormat: StringOutputFormat): string;
1413
+ /**
1414
+ * @param key
1415
+ * @returns StateAddress
1416
+ */
1417
+ export function crypto_onetimeauth_init(key: Uint8Array | string | null): StateAddress;
1418
+ /**
1419
+ * @param outputFormat Output format (default: Uint8Array)
1420
+ * @returns Uint8Array | string (CRYPTO_ONETIMEAUTH_KEYBYTES bytes)
1421
+ */
1422
+ export function crypto_onetimeauth_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1423
+ export function crypto_onetimeauth_keygen(outputFormat: StringOutputFormat): string;
1424
+ /**
1425
+ * @param state_address
1426
+ * @param message_chunk
1427
+ */
1428
+ export function crypto_onetimeauth_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1429
+ /**
1430
+ * @param hash (CRYPTO_ONETIMEAUTH_BYTES bytes)
1431
+ * @param message
1432
+ * @param key (CRYPTO_ONETIMEAUTH_KEYBYTES bytes)
1433
+ * @returns boolean
1434
+ */
1435
+ export function crypto_onetimeauth_verify(hash: Uint8Array, message: Uint8Array | string, key: Uint8Array): boolean;
1436
+ /**
1437
+ * @param keyLength
1438
+ * @param password
1439
+ * @param salt (CRYPTO_PWHASH_SALTBYTES bytes)
1440
+ * @param opsLimit
1441
+ * @param memLimit
1442
+ * @param algorithm
1443
+ * @param outputFormat Output format (default: Uint8Array)
1444
+ * @returns Uint8Array | string
1445
+ */
1446
+ export function crypto_pwhash(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, algorithm: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1447
+ export function crypto_pwhash(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, algorithm: number, outputFormat: StringOutputFormat): string;
1448
+ /**
1449
+ * @param keyLength
1450
+ * @param password
1451
+ * @param salt (CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES bytes)
1452
+ * @param opsLimit
1453
+ * @param memLimit
1454
+ * @param outputFormat Output format (default: Uint8Array)
1455
+ * @returns Uint8Array | string
1456
+ */
1457
+ export function crypto_pwhash_scryptsalsa208sha256(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1458
+ export function crypto_pwhash_scryptsalsa208sha256(keyLength: number, password: Uint8Array | string, salt: Uint8Array, opsLimit: number, memLimit: number, outputFormat: StringOutputFormat): string;
1459
+ /**
1460
+ * @param password
1461
+ * @param salt
1462
+ * @param opsLimit
1463
+ * @param r
1464
+ * @param p
1465
+ * @param keyLength
1466
+ * @param outputFormat Output format (default: Uint8Array)
1467
+ * @returns Uint8Array | string
1468
+ */
1469
+ export function crypto_pwhash_scryptsalsa208sha256_ll(password: Uint8Array | string, salt: Uint8Array | string, opsLimit: number, r: number, p: number, keyLength: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1470
+ export function crypto_pwhash_scryptsalsa208sha256_ll(password: Uint8Array | string, salt: Uint8Array | string, opsLimit: number, r: number, p: number, keyLength: number, outputFormat: StringOutputFormat): string;
1471
+ /**
1472
+ * @param password
1473
+ * @param opsLimit
1474
+ * @param memLimit
1475
+ * @returns Uint8Array (CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRBYTES bytes)
1476
+ */
1477
+ export function crypto_pwhash_scryptsalsa208sha256_str(password: Uint8Array | string, opsLimit: number, memLimit: number): Uint8Array;
1478
+ /**
1479
+ * @param hashed_password
1480
+ * @param password
1481
+ * @returns boolean
1482
+ */
1483
+ export function crypto_pwhash_scryptsalsa208sha256_str_verify(hashed_password: string, password: Uint8Array | string): boolean;
1484
+ /**
1485
+ * @param password
1486
+ * @param opsLimit
1487
+ * @param memLimit
1488
+ * @returns Uint8Array (CRYPTO_PWHASH_STRBYTES bytes)
1489
+ */
1490
+ export function crypto_pwhash_str(password: Uint8Array | string, opsLimit: number, memLimit: number): Uint8Array;
1491
+ /**
1492
+ * @param hashed_password
1493
+ * @param opsLimit
1494
+ * @param memLimit
1495
+ * @returns boolean
1496
+ */
1497
+ export function crypto_pwhash_str_needs_rehash(hashed_password: string, opsLimit: number, memLimit: number): boolean;
1498
+ /**
1499
+ * @param hashed_password
1500
+ * @param password
1501
+ * @returns boolean
1502
+ */
1503
+ export function crypto_pwhash_str_verify(hashed_password: string, password: Uint8Array | string): boolean;
1504
+ /**
1505
+ * @param privateKey (CRYPTO_SCALARMULT_SCALARBYTES bytes)
1506
+ * @param publicKey (CRYPTO_SCALARMULT_BYTES bytes)
1507
+ * @param outputFormat Output format (default: Uint8Array)
1508
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_BYTES bytes)
1509
+ */
1510
+ export function crypto_scalarmult(privateKey: Uint8Array, publicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1511
+ export function crypto_scalarmult(privateKey: Uint8Array, publicKey: Uint8Array, outputFormat: StringOutputFormat): string;
1512
+ /**
1513
+ * @param privateKey (CRYPTO_SCALARMULT_SCALARBYTES bytes)
1514
+ * @param outputFormat Output format (default: Uint8Array)
1515
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_BYTES bytes)
1516
+ */
1517
+ export function crypto_scalarmult_base(privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1518
+ export function crypto_scalarmult_base(privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1519
+ /**
1520
+ * @param n (CRYPTO_SCALARMULT_ED25519_SCALARBYTES bytes)
1521
+ * @param p (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1522
+ * @param outputFormat Output format (default: Uint8Array)
1523
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1524
+ */
1525
+ export function crypto_scalarmult_ed25519(n: Uint8Array, p: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1526
+ export function crypto_scalarmult_ed25519(n: Uint8Array, p: Uint8Array, outputFormat: StringOutputFormat): string;
1527
+ /**
1528
+ * @param scalar (CRYPTO_SCALARMULT_ED25519_SCALARBYTES bytes)
1529
+ * @param outputFormat Output format (default: Uint8Array)
1530
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1531
+ */
1532
+ export function crypto_scalarmult_ed25519_base(scalar: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1533
+ export function crypto_scalarmult_ed25519_base(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
1534
+ /**
1535
+ * @param scalar (CRYPTO_SCALARMULT_ED25519_SCALARBYTES bytes)
1536
+ * @param outputFormat Output format (default: Uint8Array)
1537
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1538
+ */
1539
+ export function crypto_scalarmult_ed25519_base_noclamp(scalar: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1540
+ export function crypto_scalarmult_ed25519_base_noclamp(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
1541
+ /**
1542
+ * @param n (CRYPTO_SCALARMULT_ED25519_SCALARBYTES bytes)
1543
+ * @param p (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1544
+ * @param outputFormat Output format (default: Uint8Array)
1545
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_ED25519_BYTES bytes)
1546
+ */
1547
+ export function crypto_scalarmult_ed25519_noclamp(n: Uint8Array, p: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1548
+ export function crypto_scalarmult_ed25519_noclamp(n: Uint8Array, p: Uint8Array, outputFormat: StringOutputFormat): string;
1549
+ /**
1550
+ * @param scalar (CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES bytes)
1551
+ * @param element (CRYPTO_SCALARMULT_RISTRETTO255_BYTES bytes)
1552
+ * @param outputFormat Output format (default: Uint8Array)
1553
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_RISTRETTO255_BYTES bytes)
1554
+ */
1555
+ export function crypto_scalarmult_ristretto255(scalar: Uint8Array, element: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1556
+ export function crypto_scalarmult_ristretto255(scalar: Uint8Array, element: Uint8Array, outputFormat: StringOutputFormat): string;
1557
+ /**
1558
+ * @param scalar (CRYPTO_CORE_RISTRETTO255_SCALARBYTES bytes)
1559
+ * @param outputFormat Output format (default: Uint8Array)
1560
+ * @returns Uint8Array | string (CRYPTO_CORE_RISTRETTO255_BYTES bytes)
1561
+ */
1562
+ export function crypto_scalarmult_ristretto255_base(scalar: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1563
+ export function crypto_scalarmult_ristretto255_base(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
1564
+ /**
1565
+ * @param message
1566
+ * @param nonce (CRYPTO_SECRETBOX_NONCEBYTES bytes)
1567
+ * @param key (CRYPTO_SECRETBOX_KEYBYTES bytes)
1568
+ * @param outputFormat Output format (default: Uint8Array)
1569
+ * @returns {mac, cipher}
1570
+ */
1571
+ export function crypto_secretbox_detached(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { mac: Uint8Array; cipher: Uint8Array };
1572
+ export function crypto_secretbox_detached(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): { mac: string; cipher: string };
1573
+ /**
1574
+ * @param message
1575
+ * @param nonce (CRYPTO_SECRETBOX_NONCEBYTES bytes)
1576
+ * @param key (CRYPTO_SECRETBOX_KEYBYTES bytes)
1577
+ * @param outputFormat Output format (default: Uint8Array)
1578
+ * @returns Uint8Array | string (CRYPTO_SECRETBOX_MACBYTES bytes)
1579
+ */
1580
+ export function crypto_secretbox_easy(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1581
+ export function crypto_secretbox_easy(message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1582
+ /**
1583
+ * @param outputFormat Output format (default: Uint8Array)
1584
+ * @returns Uint8Array | string (CRYPTO_SECRETBOX_KEYBYTES bytes)
1585
+ */
1586
+ export function crypto_secretbox_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1587
+ export function crypto_secretbox_keygen(outputFormat: StringOutputFormat): string;
1588
+ /**
1589
+ * @param ciphertext
1590
+ * @param mac (CRYPTO_SECRETBOX_MACBYTES bytes)
1591
+ * @param nonce (CRYPTO_SECRETBOX_NONCEBYTES bytes)
1592
+ * @param key (CRYPTO_SECRETBOX_KEYBYTES bytes)
1593
+ * @param outputFormat Output format (default: Uint8Array)
1594
+ * @returns Uint8Array | string
1595
+ */
1596
+ export function crypto_secretbox_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1597
+ export function crypto_secretbox_open_detached(ciphertext: Uint8Array | string, mac: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1598
+ /**
1599
+ * @param ciphertext
1600
+ * @param nonce (CRYPTO_SECRETBOX_NONCEBYTES bytes)
1601
+ * @param key (CRYPTO_SECRETBOX_KEYBYTES bytes)
1602
+ * @param outputFormat Output format (default: Uint8Array)
1603
+ * @returns Uint8Array | string (CRYPTO_SECRETBOX_MACBYTES bytes)
1604
+ */
1605
+ export function crypto_secretbox_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1606
+ export function crypto_secretbox_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1607
+ /**
1608
+ * @param header (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES bytes)
1609
+ * @param key (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES bytes)
1610
+ * @returns StateAddress
1611
+ */
1612
+ export function crypto_secretstream_xchacha20poly1305_init_pull(header: Uint8Array, key: Uint8Array): StateAddress;
1613
+ /**
1614
+ * @param key (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES bytes)
1615
+ * @param outputFormat Output format (default: Uint8Array)
1616
+ * @returns {state, header}
1617
+ */
1618
+ export function crypto_secretstream_xchacha20poly1305_init_push(key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { state: StateAddress; header: Uint8Array };
1619
+ export function crypto_secretstream_xchacha20poly1305_init_push(key: Uint8Array, outputFormat: StringOutputFormat): { state: StateAddress; header: string };
1620
+ /**
1621
+ * @param outputFormat Output format (default: Uint8Array)
1622
+ * @returns Uint8Array | string (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES bytes)
1623
+ */
1624
+ export function crypto_secretstream_xchacha20poly1305_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1625
+ export function crypto_secretstream_xchacha20poly1305_keygen(outputFormat: StringOutputFormat): string;
1626
+ /**
1627
+ * @param state_address
1628
+ * @param cipher
1629
+ * @param ad
1630
+ * @param outputFormat Output format (default: Uint8Array)
1631
+ * @returns {message, tag} | false (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES bytes)
1632
+ */
1633
+ export function crypto_secretstream_xchacha20poly1305_pull(state_address: StateAddress, cipher: Uint8Array, ad: Uint8Array | string | null, outputFormat?: Uint8ArrayOutputFormat | null): { message: Uint8Array; tag: number } | false;
1634
+ export function crypto_secretstream_xchacha20poly1305_pull(state_address: StateAddress, cipher: Uint8Array, ad: Uint8Array | string | null, outputFormat: StringOutputFormat): { message: string; tag: number } | false;
1635
+ /**
1636
+ * @param state_address
1637
+ * @param message_chunk
1638
+ * @param ad
1639
+ * @param tag
1640
+ * @param outputFormat Output format (default: Uint8Array)
1641
+ * @returns Uint8Array | string (CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES bytes)
1642
+ */
1643
+ export function crypto_secretstream_xchacha20poly1305_push(state_address: StateAddress, message_chunk: Uint8Array | string, ad: Uint8Array | string | null, tag: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1644
+ export function crypto_secretstream_xchacha20poly1305_push(state_address: StateAddress, message_chunk: Uint8Array | string, ad: Uint8Array | string | null, tag: number, outputFormat: StringOutputFormat): string;
1645
+ /**
1646
+ * @param state_address
1647
+ */
1648
+ export function crypto_secretstream_xchacha20poly1305_rekey(state_address: StateAddress): void;
1649
+ /**
1650
+ * @param message
1651
+ * @param key (CRYPTO_SHORTHASH_KEYBYTES bytes)
1652
+ * @param outputFormat Output format (default: Uint8Array)
1653
+ * @returns Uint8Array | string (CRYPTO_SHORTHASH_BYTES bytes)
1654
+ */
1655
+ export function crypto_shorthash(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1656
+ export function crypto_shorthash(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
1657
+ /**
1658
+ * @param outputFormat Output format (default: Uint8Array)
1659
+ * @returns Uint8Array | string (CRYPTO_SHORTHASH_KEYBYTES bytes)
1660
+ */
1661
+ export function crypto_shorthash_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1662
+ export function crypto_shorthash_keygen(outputFormat: StringOutputFormat): string;
1663
+ /**
1664
+ * @param message
1665
+ * @param key (CRYPTO_SHORTHASH_SIPHASHX24_KEYBYTES bytes)
1666
+ * @param outputFormat Output format (default: Uint8Array)
1667
+ * @returns Uint8Array | string (CRYPTO_SHORTHASH_SIPHASHX24_BYTES bytes)
1668
+ */
1669
+ export function crypto_shorthash_siphashx24(message: Uint8Array | string, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1670
+ export function crypto_shorthash_siphashx24(message: Uint8Array | string, key: Uint8Array, outputFormat: StringOutputFormat): string;
1671
+ /**
1672
+ * @param message
1673
+ * @param privateKey (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1674
+ * @param outputFormat Output format (default: Uint8Array)
1675
+ * @returns Uint8Array | string (CRYPTO_SIGN_BYTES bytes)
1676
+ */
1677
+ export function crypto_sign(message: Uint8Array | string, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1678
+ export function crypto_sign(message: Uint8Array | string, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1679
+ /**
1680
+ * @param message
1681
+ * @param privateKey (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1682
+ * @param outputFormat Output format (default: Uint8Array)
1683
+ * @returns Uint8Array | string (CRYPTO_SIGN_BYTES bytes)
1684
+ */
1685
+ export function crypto_sign_detached(message: Uint8Array | string, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1686
+ export function crypto_sign_detached(message: Uint8Array | string, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1687
+ /**
1688
+ * @param edPk (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1689
+ * @param outputFormat Output format (default: Uint8Array)
1690
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_SCALARBYTES bytes)
1691
+ */
1692
+ export function crypto_sign_ed25519_pk_to_curve25519(edPk: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1693
+ export function crypto_sign_ed25519_pk_to_curve25519(edPk: Uint8Array, outputFormat: StringOutputFormat): string;
1694
+ /**
1695
+ * @param edSk (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1696
+ * @param outputFormat Output format (default: Uint8Array)
1697
+ * @returns Uint8Array | string (CRYPTO_SCALARMULT_SCALARBYTES bytes)
1698
+ */
1699
+ export function crypto_sign_ed25519_sk_to_curve25519(edSk: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1700
+ export function crypto_sign_ed25519_sk_to_curve25519(edSk: Uint8Array, outputFormat: StringOutputFormat): string;
1701
+ /**
1702
+ * @param privateKey (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1703
+ * @param outputFormat Output format (default: Uint8Array)
1704
+ * @returns Uint8Array | string (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1705
+ */
1706
+ export function crypto_sign_ed25519_sk_to_pk(privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1707
+ export function crypto_sign_ed25519_sk_to_pk(privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1708
+ /**
1709
+ * @param privateKey (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1710
+ * @param outputFormat Output format (default: Uint8Array)
1711
+ * @returns Uint8Array | string (CRYPTO_SIGN_SEEDBYTES bytes)
1712
+ */
1713
+ export function crypto_sign_ed25519_sk_to_seed(privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1714
+ export function crypto_sign_ed25519_sk_to_seed(privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1715
+ /**
1716
+ * @param state_address
1717
+ * @param privateKey (CRYPTO_SIGN_SECRETKEYBYTES bytes)
1718
+ * @param outputFormat Output format (default: Uint8Array)
1719
+ * @returns Uint8Array | string (CRYPTO_SIGN_BYTES bytes)
1720
+ */
1721
+ export function crypto_sign_final_create(state_address: StateAddress, privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1722
+ export function crypto_sign_final_create(state_address: StateAddress, privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
1723
+ /**
1724
+ * @param state_address
1725
+ * @param signature (CRYPTO_SIGN_BYTES bytes)
1726
+ * @param publicKey (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1727
+ * @returns boolean
1728
+ */
1729
+ export function crypto_sign_final_verify(state_address: StateAddress, signature: Uint8Array, publicKey: Uint8Array): boolean;
1730
+ /**
1731
+ * @returns StateAddress
1732
+ */
1733
+ export function crypto_sign_init(): StateAddress;
1734
+ /**
1735
+ * @param outputFormat Output format (default: Uint8Array)
1736
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1737
+ */
1738
+ export function crypto_sign_keypair(outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
1739
+ export function crypto_sign_keypair(outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
1740
+ /**
1741
+ * @param signedMessage
1742
+ * @param publicKey (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1743
+ * @param outputFormat Output format (default: Uint8Array)
1744
+ * @returns Uint8Array | string (CRYPTO_SIGN_BYTES bytes)
1745
+ */
1746
+ export function crypto_sign_open(signedMessage: Uint8Array, publicKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1747
+ export function crypto_sign_open(signedMessage: Uint8Array, publicKey: Uint8Array, outputFormat: StringOutputFormat): string;
1748
+ /**
1749
+ * @param seed (CRYPTO_SIGN_SEEDBYTES bytes)
1750
+ * @param outputFormat Output format (default: Uint8Array)
1751
+ * @returns {publicKey, privateKey, keyType} (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1752
+ */
1753
+ export function crypto_sign_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string };
1754
+ export function crypto_sign_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): { publicKey: string; privateKey: string; keyType: string };
1755
+ /**
1756
+ * @param state_address
1757
+ * @param message_chunk
1758
+ */
1759
+ export function crypto_sign_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1760
+ /**
1761
+ * @param signature (CRYPTO_SIGN_BYTES bytes)
1762
+ * @param message
1763
+ * @param publicKey (CRYPTO_SIGN_PUBLICKEYBYTES bytes)
1764
+ * @returns boolean
1765
+ */
1766
+ export function crypto_sign_verify_detached(signature: Uint8Array, message: Uint8Array | string, publicKey: Uint8Array): boolean;
1767
+ /**
1768
+ * @param outLength
1769
+ * @param key (CRYPTO_STREAM_CHACHA20_KEYBYTES bytes)
1770
+ * @param nonce (CRYPTO_STREAM_CHACHA20_NONCEBYTES bytes)
1771
+ * @param outputFormat Output format (default: Uint8Array)
1772
+ * @returns Uint8Array | string
1773
+ */
1774
+ export function crypto_stream_chacha20(outLength: number, key: Uint8Array, nonce: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1775
+ export function crypto_stream_chacha20(outLength: number, key: Uint8Array, nonce: Uint8Array, outputFormat: StringOutputFormat): string;
1776
+ /**
1777
+ * @param input_message
1778
+ * @param nonce (CRYPTO_STREAM_CHACHA20_IETF_NONCEBYTES bytes)
1779
+ * @param key (CRYPTO_STREAM_CHACHA20_IETF_KEYBYTES bytes)
1780
+ * @param outputFormat Output format (default: Uint8Array)
1781
+ * @returns Uint8Array | string
1782
+ */
1783
+ export function crypto_stream_chacha20_ietf_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1784
+ export function crypto_stream_chacha20_ietf_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1785
+ /**
1786
+ * @param input_message
1787
+ * @param nonce (CRYPTO_STREAM_CHACHA20_IETF_NONCEBYTES bytes)
1788
+ * @param nonce_increment
1789
+ * @param key (CRYPTO_STREAM_CHACHA20_IETF_KEYBYTES bytes)
1790
+ * @param outputFormat Output format (default: Uint8Array)
1791
+ * @returns Uint8Array | string
1792
+ */
1793
+ export function crypto_stream_chacha20_ietf_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1794
+ export function crypto_stream_chacha20_ietf_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat: StringOutputFormat): string;
1795
+ /**
1796
+ * @param outputFormat Output format (default: Uint8Array)
1797
+ * @returns Uint8Array | string (CRYPTO_STREAM_CHACHA20_KEYBYTES bytes)
1798
+ */
1799
+ export function crypto_stream_chacha20_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1800
+ export function crypto_stream_chacha20_keygen(outputFormat: StringOutputFormat): string;
1801
+ /**
1802
+ * @param input_message
1803
+ * @param nonce (CRYPTO_STREAM_CHACHA20_NONCEBYTES bytes)
1804
+ * @param key (CRYPTO_STREAM_CHACHA20_KEYBYTES bytes)
1805
+ * @param outputFormat Output format (default: Uint8Array)
1806
+ * @returns Uint8Array | string
1807
+ */
1808
+ export function crypto_stream_chacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1809
+ export function crypto_stream_chacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1810
+ /**
1811
+ * @param input_message
1812
+ * @param nonce (CRYPTO_STREAM_CHACHA20_NONCEBYTES bytes)
1813
+ * @param nonce_increment
1814
+ * @param key (CRYPTO_STREAM_CHACHA20_KEYBYTES bytes)
1815
+ * @param outputFormat Output format (default: Uint8Array)
1816
+ * @returns Uint8Array | string
1817
+ */
1818
+ export function crypto_stream_chacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1819
+ export function crypto_stream_chacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat: StringOutputFormat): string;
1820
+ /**
1821
+ * @param outputFormat Output format (default: Uint8Array)
1822
+ * @returns Uint8Array | string (CRYPTO_STREAM_KEYBYTES bytes)
1823
+ */
1824
+ export function crypto_stream_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1825
+ export function crypto_stream_keygen(outputFormat: StringOutputFormat): string;
1826
+ /**
1827
+ * @param outputFormat Output format (default: Uint8Array)
1828
+ * @returns Uint8Array | string (CRYPTO_STREAM_XCHACHA20_KEYBYTES bytes)
1829
+ */
1830
+ export function crypto_stream_xchacha20_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1831
+ export function crypto_stream_xchacha20_keygen(outputFormat: StringOutputFormat): string;
1832
+ /**
1833
+ * @param input_message
1834
+ * @param nonce (CRYPTO_STREAM_XCHACHA20_NONCEBYTES bytes)
1835
+ * @param key (CRYPTO_STREAM_XCHACHA20_KEYBYTES bytes)
1836
+ * @param outputFormat Output format (default: Uint8Array)
1837
+ * @returns Uint8Array | string
1838
+ */
1839
+ export function crypto_stream_xchacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1840
+ export function crypto_stream_xchacha20_xor(input_message: Uint8Array | string, nonce: Uint8Array, key: Uint8Array, outputFormat: StringOutputFormat): string;
1841
+ /**
1842
+ * @param input_message
1843
+ * @param nonce (CRYPTO_STREAM_XCHACHA20_NONCEBYTES bytes)
1844
+ * @param nonce_increment
1845
+ * @param key (CRYPTO_STREAM_XCHACHA20_KEYBYTES bytes)
1846
+ * @param outputFormat Output format (default: Uint8Array)
1847
+ * @returns Uint8Array | string
1848
+ */
1849
+ export function crypto_stream_xchacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1850
+ export function crypto_stream_xchacha20_xor_ic(input_message: Uint8Array | string, nonce: Uint8Array, nonce_increment: number, key: Uint8Array, outputFormat: StringOutputFormat): string;
1851
+ /**
1852
+ * @param out_length
1853
+ * @param message
1854
+ * @param outputFormat Output format (default: Uint8Array)
1855
+ * @returns Uint8Array | string
1856
+ */
1857
+ export function crypto_xof_shake128(out_length: number, message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1858
+ export function crypto_xof_shake128(out_length: number, message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1859
+ /**
1860
+ * @returns StateAddress
1861
+ */
1862
+ export function crypto_xof_shake128_init(): StateAddress;
1863
+ /**
1864
+ * @param domain
1865
+ * @returns StateAddress
1866
+ */
1867
+ export function crypto_xof_shake128_init_with_domain(domain: number): StateAddress;
1868
+ /**
1869
+ * @param state_address
1870
+ * @param out_length
1871
+ * @param outputFormat Output format (default: Uint8Array)
1872
+ * @returns Uint8Array | string
1873
+ */
1874
+ export function crypto_xof_shake128_squeeze(state_address: StateAddress, out_length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1875
+ export function crypto_xof_shake128_squeeze(state_address: StateAddress, out_length: number, outputFormat: StringOutputFormat): string;
1876
+ /**
1877
+ * @param state_address
1878
+ * @param message_chunk
1879
+ */
1880
+ export function crypto_xof_shake128_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1881
+ /**
1882
+ * @param out_length
1883
+ * @param message
1884
+ * @param outputFormat Output format (default: Uint8Array)
1885
+ * @returns Uint8Array | string
1886
+ */
1887
+ export function crypto_xof_shake256(out_length: number, message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1888
+ export function crypto_xof_shake256(out_length: number, message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1889
+ /**
1890
+ * @returns StateAddress
1891
+ */
1892
+ export function crypto_xof_shake256_init(): StateAddress;
1893
+ /**
1894
+ * @param domain
1895
+ * @returns StateAddress
1896
+ */
1897
+ export function crypto_xof_shake256_init_with_domain(domain: number): StateAddress;
1898
+ /**
1899
+ * @param state_address
1900
+ * @param out_length
1901
+ * @param outputFormat Output format (default: Uint8Array)
1902
+ * @returns Uint8Array | string
1903
+ */
1904
+ export function crypto_xof_shake256_squeeze(state_address: StateAddress, out_length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1905
+ export function crypto_xof_shake256_squeeze(state_address: StateAddress, out_length: number, outputFormat: StringOutputFormat): string;
1906
+ /**
1907
+ * @param state_address
1908
+ * @param message_chunk
1909
+ */
1910
+ export function crypto_xof_shake256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1911
+ /**
1912
+ * @param out_length
1913
+ * @param message
1914
+ * @param outputFormat Output format (default: Uint8Array)
1915
+ * @returns Uint8Array | string
1916
+ */
1917
+ export function crypto_xof_turboshake128(out_length: number, message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1918
+ export function crypto_xof_turboshake128(out_length: number, message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1919
+ /**
1920
+ * @returns StateAddress
1921
+ */
1922
+ export function crypto_xof_turboshake128_init(): StateAddress;
1923
+ /**
1924
+ * @param domain
1925
+ * @returns StateAddress
1926
+ */
1927
+ export function crypto_xof_turboshake128_init_with_domain(domain: number): StateAddress;
1928
+ /**
1929
+ * @param state_address
1930
+ * @param out_length
1931
+ * @param outputFormat Output format (default: Uint8Array)
1932
+ * @returns Uint8Array | string
1933
+ */
1934
+ export function crypto_xof_turboshake128_squeeze(state_address: StateAddress, out_length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1935
+ export function crypto_xof_turboshake128_squeeze(state_address: StateAddress, out_length: number, outputFormat: StringOutputFormat): string;
1936
+ /**
1937
+ * @param state_address
1938
+ * @param message_chunk
1939
+ */
1940
+ export function crypto_xof_turboshake128_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1941
+ /**
1942
+ * @param out_length
1943
+ * @param message
1944
+ * @param outputFormat Output format (default: Uint8Array)
1945
+ * @returns Uint8Array | string
1946
+ */
1947
+ export function crypto_xof_turboshake256(out_length: number, message: Uint8Array | string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1948
+ export function crypto_xof_turboshake256(out_length: number, message: Uint8Array | string, outputFormat: StringOutputFormat): string;
1949
+ /**
1950
+ * @returns StateAddress
1951
+ */
1952
+ export function crypto_xof_turboshake256_init(): StateAddress;
1953
+ /**
1954
+ * @param domain
1955
+ * @returns StateAddress
1956
+ */
1957
+ export function crypto_xof_turboshake256_init_with_domain(domain: number): StateAddress;
1958
+ /**
1959
+ * @param state_address
1960
+ * @param out_length
1961
+ * @param outputFormat Output format (default: Uint8Array)
1962
+ * @returns Uint8Array | string
1963
+ */
1964
+ export function crypto_xof_turboshake256_squeeze(state_address: StateAddress, out_length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1965
+ export function crypto_xof_turboshake256_squeeze(state_address: StateAddress, out_length: number, outputFormat: StringOutputFormat): string;
1966
+ /**
1967
+ * @param state_address
1968
+ * @param message_chunk
1969
+ */
1970
+ export function crypto_xof_turboshake256_update(state_address: StateAddress, message_chunk: Uint8Array | string): void;
1971
+ /**
1972
+ * @param length
1973
+ * @param outputFormat Output format (default: Uint8Array)
1974
+ * @returns Uint8Array | string
1975
+ */
1976
+ export function randombytes_buf(length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1977
+ export function randombytes_buf(length: number, outputFormat: StringOutputFormat): string;
1978
+ /**
1979
+ * @param length
1980
+ * @param seed (RANDOMBYTES_SEEDBYTES bytes)
1981
+ * @param outputFormat Output format (default: Uint8Array)
1982
+ * @returns Uint8Array | string
1983
+ */
1984
+ export function randombytes_buf_deterministic(length: number, seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
1985
+ export function randombytes_buf_deterministic(length: number, seed: Uint8Array, outputFormat: StringOutputFormat): string;
1986
+ /**
1987
+ */
1988
+ export function randombytes_close(): void;
1989
+ /**
1990
+ * @returns number
1991
+ */
1992
+ export function randombytes_random(): number;
1993
+ /**
1994
+ * @param implementation
1995
+ */
1996
+ export function randombytes_set_implementation(implementation: object): void;
1997
+ /**
1998
+ */
1999
+ export function randombytes_stir(): void;
2000
+ /**
2001
+ * @param upper_bound
2002
+ * @returns number
2003
+ */
2004
+ export function randombytes_uniform(upper_bound: number): number;
2005
+ /**
2006
+ * @param bin
2007
+ * @returns Uint8Array
2008
+ */
2009
+ export function sodium_bin2ip(bin: Uint8Array): Uint8Array;
2010
+ /**
2011
+ * @param ip
2012
+ * @param outputFormat Output format (default: Uint8Array)
2013
+ * @returns Uint8Array | string
2014
+ */
2015
+ export function sodium_ip2bin(ip: string, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
2016
+ export function sodium_ip2bin(ip: string, outputFormat: StringOutputFormat): string;
2017
+ /**
2018
+ * @returns string
2019
+ */
2020
+ export function sodium_version_string(): string;
2021
+
2022
+ // Internal: list of all exported symbols
2023
+ export function symbols(): string[];
2024
+
2025
+ // Default export interface containing all exports
2026
+ declare const sodium: {
2027
+ readonly ready: Promise<void>;
2028
+ readonly base64_variants: typeof base64_variants;
2029
+ readonly output_formats: string[];
2030
+ from_base64(input: string, variant?: base64_variants): Uint8Array;
2031
+ to_base64(input: Uint8Array | string, variant?: base64_variants): string;
2032
+ from_hex(input: string): Uint8Array;
2033
+ to_hex(input: Uint8Array | string): string;
2034
+ from_string(input: string): Uint8Array;
2035
+ to_string(input: Uint8Array): string;
2036
+ pad(buf: Uint8Array, blocksize: number): Uint8Array;
2037
+ unpad(buf: Uint8Array, blocksize: number): Uint8Array;
2038
+ memcmp(b1: Uint8Array, b2: Uint8Array): boolean;
2039
+ memzero(bytes: Uint8Array): void;
2040
+ increment(bytes: Uint8Array): void;
2041
+ add(a: Uint8Array, b: Uint8Array): void;
2042
+ compare(b1: Uint8Array, b2: Uint8Array): number;
2043
+ is_zero(bytes: Uint8Array): boolean;
2044
+ symbols(): string[];
2045
+ readonly SODIUM_LIBRARY_VERSION_MAJOR: number;
2046
+ readonly SODIUM_LIBRARY_VERSION_MINOR: number;
2047
+ readonly SODIUM_VERSION_STRING: string;
2048
+ readonly crypto_aead_aegis128l_ABYTES: number;
2049
+ readonly crypto_aead_aegis128l_KEYBYTES: number;
2050
+ readonly crypto_aead_aegis128l_MESSAGEBYTES_MAX: number;
2051
+ readonly crypto_aead_aegis128l_NPUBBYTES: number;
2052
+ readonly crypto_aead_aegis128l_NSECBYTES: number;
2053
+ readonly crypto_aead_aegis256_ABYTES: number;
2054
+ readonly crypto_aead_aegis256_KEYBYTES: number;
2055
+ readonly crypto_aead_aegis256_MESSAGEBYTES_MAX: number;
2056
+ readonly crypto_aead_aegis256_NPUBBYTES: number;
2057
+ readonly crypto_aead_aegis256_NSECBYTES: number;
2058
+ readonly crypto_aead_aes256gcm_ABYTES: number;
2059
+ readonly crypto_aead_aes256gcm_KEYBYTES: number;
2060
+ readonly crypto_aead_aes256gcm_MESSAGEBYTES_MAX: number;
2061
+ readonly crypto_aead_aes256gcm_NPUBBYTES: number;
2062
+ readonly crypto_aead_aes256gcm_NSECBYTES: number;
2063
+ readonly crypto_aead_chacha20poly1305_ABYTES: number;
2064
+ readonly crypto_aead_chacha20poly1305_IETF_ABYTES: number;
2065
+ readonly crypto_aead_chacha20poly1305_IETF_KEYBYTES: number;
2066
+ readonly crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
2067
+ readonly crypto_aead_chacha20poly1305_IETF_NPUBBYTES: number;
2068
+ readonly crypto_aead_chacha20poly1305_IETF_NSECBYTES: number;
2069
+ readonly crypto_aead_chacha20poly1305_KEYBYTES: number;
2070
+ readonly crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX: number;
2071
+ readonly crypto_aead_chacha20poly1305_NPUBBYTES: number;
2072
+ readonly crypto_aead_chacha20poly1305_NSECBYTES: number;
2073
+ readonly crypto_aead_chacha20poly1305_ietf_ABYTES: number;
2074
+ readonly crypto_aead_chacha20poly1305_ietf_KEYBYTES: number;
2075
+ readonly crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
2076
+ readonly crypto_aead_chacha20poly1305_ietf_NPUBBYTES: number;
2077
+ readonly crypto_aead_chacha20poly1305_ietf_NSECBYTES: number;
2078
+ readonly crypto_aead_xchacha20poly1305_IETF_ABYTES: number;
2079
+ readonly crypto_aead_xchacha20poly1305_IETF_KEYBYTES: number;
2080
+ readonly crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX: number;
2081
+ readonly crypto_aead_xchacha20poly1305_IETF_NPUBBYTES: number;
2082
+ readonly crypto_aead_xchacha20poly1305_IETF_NSECBYTES: number;
2083
+ readonly crypto_aead_xchacha20poly1305_ietf_ABYTES: number;
2084
+ readonly crypto_aead_xchacha20poly1305_ietf_KEYBYTES: number;
2085
+ readonly crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX: number;
2086
+ readonly crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: number;
2087
+ readonly crypto_aead_xchacha20poly1305_ietf_NSECBYTES: number;
2088
+ readonly crypto_auth_BYTES: number;
2089
+ readonly crypto_auth_KEYBYTES: number;
2090
+ readonly crypto_auth_hmacsha256_BYTES: number;
2091
+ readonly crypto_auth_hmacsha256_KEYBYTES: number;
2092
+ readonly crypto_auth_hmacsha512256_BYTES: number;
2093
+ readonly crypto_auth_hmacsha512256_KEYBYTES: number;
2094
+ readonly crypto_auth_hmacsha512_BYTES: number;
2095
+ readonly crypto_auth_hmacsha512_KEYBYTES: number;
2096
+ readonly crypto_box_BEFORENMBYTES: number;
2097
+ readonly crypto_box_MACBYTES: number;
2098
+ readonly crypto_box_MESSAGEBYTES_MAX: number;
2099
+ readonly crypto_box_NONCEBYTES: number;
2100
+ readonly crypto_box_PUBLICKEYBYTES: number;
2101
+ readonly crypto_box_SEALBYTES: number;
2102
+ readonly crypto_box_SECRETKEYBYTES: number;
2103
+ readonly crypto_box_SEEDBYTES: number;
2104
+ readonly crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES: number;
2105
+ readonly crypto_box_curve25519xchacha20poly1305_MACBYTES: number;
2106
+ readonly crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX: number;
2107
+ readonly crypto_box_curve25519xchacha20poly1305_NONCEBYTES: number;
2108
+ readonly crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES: number;
2109
+ readonly crypto_box_curve25519xchacha20poly1305_SEALBYTES: number;
2110
+ readonly crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES: number;
2111
+ readonly crypto_box_curve25519xchacha20poly1305_SEEDBYTES: number;
2112
+ readonly crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES: number;
2113
+ readonly crypto_box_curve25519xsalsa20poly1305_MACBYTES: number;
2114
+ readonly crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX: number;
2115
+ readonly crypto_box_curve25519xsalsa20poly1305_NONCEBYTES: number;
2116
+ readonly crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES: number;
2117
+ readonly crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES: number;
2118
+ readonly crypto_box_curve25519xsalsa20poly1305_SEEDBYTES: number;
2119
+ readonly crypto_core_ed25519_BYTES: number;
2120
+ readonly crypto_core_ed25519_HASHBYTES: number;
2121
+ readonly crypto_core_ed25519_NONREDUCEDSCALARBYTES: number;
2122
+ readonly crypto_core_ed25519_SCALARBYTES: number;
2123
+ readonly crypto_core_ed25519_UNIFORMBYTES: number;
2124
+ readonly crypto_core_hchacha20_CONSTBYTES: number;
2125
+ readonly crypto_core_hchacha20_INPUTBYTES: number;
2126
+ readonly crypto_core_hchacha20_KEYBYTES: number;
2127
+ readonly crypto_core_hchacha20_OUTPUTBYTES: number;
2128
+ readonly crypto_core_hsalsa20_CONSTBYTES: number;
2129
+ readonly crypto_core_hsalsa20_INPUTBYTES: number;
2130
+ readonly crypto_core_hsalsa20_KEYBYTES: number;
2131
+ readonly crypto_core_hsalsa20_OUTPUTBYTES: number;
2132
+ readonly crypto_core_ristretto255_BYTES: number;
2133
+ readonly crypto_core_ristretto255_HASHBYTES: number;
2134
+ readonly crypto_core_ristretto255_NONREDUCEDSCALARBYTES: number;
2135
+ readonly crypto_core_ristretto255_SCALARBYTES: number;
2136
+ readonly crypto_core_salsa2012_CONSTBYTES: number;
2137
+ readonly crypto_core_salsa2012_INPUTBYTES: number;
2138
+ readonly crypto_core_salsa2012_KEYBYTES: number;
2139
+ readonly crypto_core_salsa2012_OUTPUTBYTES: number;
2140
+ readonly crypto_core_salsa208_CONSTBYTES: number;
2141
+ readonly crypto_core_salsa208_INPUTBYTES: number;
2142
+ readonly crypto_core_salsa208_KEYBYTES: number;
2143
+ readonly crypto_core_salsa208_OUTPUTBYTES: number;
2144
+ readonly crypto_core_salsa20_CONSTBYTES: number;
2145
+ readonly crypto_core_salsa20_INPUTBYTES: number;
2146
+ readonly crypto_core_salsa20_KEYBYTES: number;
2147
+ readonly crypto_core_salsa20_OUTPUTBYTES: number;
2148
+ readonly crypto_generichash_BYTES: number;
2149
+ readonly crypto_generichash_BYTES_MAX: number;
2150
+ readonly crypto_generichash_BYTES_MIN: number;
2151
+ readonly crypto_generichash_KEYBYTES: number;
2152
+ readonly crypto_generichash_KEYBYTES_MAX: number;
2153
+ readonly crypto_generichash_KEYBYTES_MIN: number;
2154
+ readonly crypto_generichash_blake2b_BYTES: number;
2155
+ readonly crypto_generichash_blake2b_BYTES_MAX: number;
2156
+ readonly crypto_generichash_blake2b_BYTES_MIN: number;
2157
+ readonly crypto_generichash_blake2b_KEYBYTES: number;
2158
+ readonly crypto_generichash_blake2b_KEYBYTES_MAX: number;
2159
+ readonly crypto_generichash_blake2b_KEYBYTES_MIN: number;
2160
+ readonly crypto_generichash_blake2b_PERSONALBYTES: number;
2161
+ readonly crypto_generichash_blake2b_SALTBYTES: number;
2162
+ readonly crypto_hash_BYTES: number;
2163
+ readonly crypto_hash_sha256_BYTES: number;
2164
+ readonly crypto_hash_sha512_BYTES: number;
2165
+ readonly crypto_ipcrypt_BYTES: number;
2166
+ readonly crypto_ipcrypt_KEYBYTES: number;
2167
+ readonly crypto_ipcrypt_ND_INPUTBYTES: number;
2168
+ readonly crypto_ipcrypt_ND_KEYBYTES: number;
2169
+ readonly crypto_ipcrypt_ND_OUTPUTBYTES: number;
2170
+ readonly crypto_ipcrypt_ND_TWEAKBYTES: number;
2171
+ readonly crypto_ipcrypt_NDX_INPUTBYTES: number;
2172
+ readonly crypto_ipcrypt_NDX_KEYBYTES: number;
2173
+ readonly crypto_ipcrypt_NDX_OUTPUTBYTES: number;
2174
+ readonly crypto_ipcrypt_NDX_TWEAKBYTES: number;
2175
+ readonly crypto_ipcrypt_PFX_BYTES: number;
2176
+ readonly crypto_ipcrypt_PFX_KEYBYTES: number;
2177
+ readonly crypto_kdf_BYTES_MAX: number;
2178
+ readonly crypto_kdf_BYTES_MIN: number;
2179
+ readonly crypto_kdf_CONTEXTBYTES: number;
2180
+ readonly crypto_kdf_KEYBYTES: number;
2181
+ readonly crypto_kdf_blake2b_BYTES_MAX: number;
2182
+ readonly crypto_kdf_blake2b_BYTES_MIN: number;
2183
+ readonly crypto_kdf_blake2b_CONTEXTBYTES: number;
2184
+ readonly crypto_kdf_blake2b_KEYBYTES: number;
2185
+ readonly crypto_kdf_hkdf_sha256_BYTES_MAX: number;
2186
+ readonly crypto_kdf_hkdf_sha256_BYTES_MIN: number;
2187
+ readonly crypto_kdf_hkdf_sha256_KEYBYTES: number;
2188
+ readonly crypto_kdf_hkdf_sha512_BYTES_MAX: number;
2189
+ readonly crypto_kdf_hkdf_sha512_BYTES_MIN: number;
2190
+ readonly crypto_kdf_hkdf_sha512_KEYBYTES: number;
2191
+ readonly crypto_kx_PUBLICKEYBYTES: number;
2192
+ readonly crypto_kx_SECRETKEYBYTES: number;
2193
+ readonly crypto_kx_SEEDBYTES: number;
2194
+ readonly crypto_kx_SESSIONKEYBYTES: number;
2195
+ readonly crypto_onetimeauth_BYTES: number;
2196
+ readonly crypto_onetimeauth_KEYBYTES: number;
2197
+ readonly crypto_onetimeauth_poly1305_BYTES: number;
2198
+ readonly crypto_onetimeauth_poly1305_KEYBYTES: number;
2199
+ readonly crypto_pwhash_ALG_ARGON2I13: number;
2200
+ readonly crypto_pwhash_ALG_ARGON2ID13: number;
2201
+ readonly crypto_pwhash_ALG_DEFAULT: number;
2202
+ readonly crypto_pwhash_BYTES_MAX: number;
2203
+ readonly crypto_pwhash_BYTES_MIN: number;
2204
+ readonly crypto_pwhash_MEMLIMIT_INTERACTIVE: number;
2205
+ readonly crypto_pwhash_MEMLIMIT_MAX: number;
2206
+ readonly crypto_pwhash_MEMLIMIT_MIN: number;
2207
+ readonly crypto_pwhash_MEMLIMIT_MODERATE: number;
2208
+ readonly crypto_pwhash_MEMLIMIT_SENSITIVE: number;
2209
+ readonly crypto_pwhash_OPSLIMIT_INTERACTIVE: number;
2210
+ readonly crypto_pwhash_OPSLIMIT_MAX: number;
2211
+ readonly crypto_pwhash_OPSLIMIT_MIN: number;
2212
+ readonly crypto_pwhash_OPSLIMIT_MODERATE: number;
2213
+ readonly crypto_pwhash_OPSLIMIT_SENSITIVE: number;
2214
+ readonly crypto_pwhash_PASSWD_MAX: number;
2215
+ readonly crypto_pwhash_PASSWD_MIN: number;
2216
+ readonly crypto_pwhash_SALTBYTES: number;
2217
+ readonly crypto_pwhash_STRBYTES: number;
2218
+ readonly crypto_pwhash_STRPREFIX: string;
2219
+ readonly crypto_pwhash_argon2i_BYTES_MAX: number;
2220
+ readonly crypto_pwhash_argon2i_BYTES_MIN: number;
2221
+ readonly crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE: number;
2222
+ readonly crypto_pwhash_argon2i_MEMLIMIT_MAX: number;
2223
+ readonly crypto_pwhash_argon2i_MEMLIMIT_MIN: number;
2224
+ readonly crypto_pwhash_argon2i_MEMLIMIT_MODERATE: number;
2225
+ readonly crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE: number;
2226
+ readonly crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE: number;
2227
+ readonly crypto_pwhash_argon2i_OPSLIMIT_MAX: number;
2228
+ readonly crypto_pwhash_argon2i_OPSLIMIT_MIN: number;
2229
+ readonly crypto_pwhash_argon2i_OPSLIMIT_MODERATE: number;
2230
+ readonly crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE: number;
2231
+ readonly crypto_pwhash_argon2i_PASSWD_MAX: number;
2232
+ readonly crypto_pwhash_argon2i_PASSWD_MIN: number;
2233
+ readonly crypto_pwhash_argon2i_SALTBYTES: number;
2234
+ readonly crypto_pwhash_argon2i_STRBYTES: number;
2235
+ readonly crypto_pwhash_argon2i_STRPREFIX: string;
2236
+ readonly crypto_pwhash_argon2id_BYTES_MAX: number;
2237
+ readonly crypto_pwhash_argon2id_BYTES_MIN: number;
2238
+ readonly crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE: number;
2239
+ readonly crypto_pwhash_argon2id_MEMLIMIT_MAX: number;
2240
+ readonly crypto_pwhash_argon2id_MEMLIMIT_MIN: number;
2241
+ readonly crypto_pwhash_argon2id_MEMLIMIT_MODERATE: number;
2242
+ readonly crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE: number;
2243
+ readonly crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE: number;
2244
+ readonly crypto_pwhash_argon2id_OPSLIMIT_MAX: number;
2245
+ readonly crypto_pwhash_argon2id_OPSLIMIT_MIN: number;
2246
+ readonly crypto_pwhash_argon2id_OPSLIMIT_MODERATE: number;
2247
+ readonly crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE: number;
2248
+ readonly crypto_pwhash_argon2id_PASSWD_MAX: number;
2249
+ readonly crypto_pwhash_argon2id_PASSWD_MIN: number;
2250
+ readonly crypto_pwhash_argon2id_SALTBYTES: number;
2251
+ readonly crypto_pwhash_argon2id_STRBYTES: number;
2252
+ readonly crypto_pwhash_argon2id_STRPREFIX: string;
2253
+ readonly crypto_pwhash_scryptsalsa208sha256_BYTES_MAX: number;
2254
+ readonly crypto_pwhash_scryptsalsa208sha256_BYTES_MIN: number;
2255
+ readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: number;
2256
+ readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX: number;
2257
+ readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN: number;
2258
+ readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: number;
2259
+ readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: number;
2260
+ readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX: number;
2261
+ readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN: number;
2262
+ readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: number;
2263
+ readonly crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX: number;
2264
+ readonly crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN: number;
2265
+ readonly crypto_pwhash_scryptsalsa208sha256_SALTBYTES: number;
2266
+ readonly crypto_pwhash_scryptsalsa208sha256_STRBYTES: number;
2267
+ readonly crypto_pwhash_scryptsalsa208sha256_STRPREFIX: string;
2268
+ readonly crypto_scalarmult_BYTES: number;
2269
+ readonly crypto_scalarmult_SCALARBYTES: number;
2270
+ readonly crypto_scalarmult_curve25519_BYTES: number;
2271
+ readonly crypto_scalarmult_curve25519_SCALARBYTES: number;
2272
+ readonly crypto_scalarmult_ed25519_BYTES: number;
2273
+ readonly crypto_scalarmult_ed25519_SCALARBYTES: number;
2274
+ readonly crypto_scalarmult_ristretto255_BYTES: number;
2275
+ readonly crypto_scalarmult_ristretto255_SCALARBYTES: number;
2276
+ readonly crypto_secretbox_KEYBYTES: number;
2277
+ readonly crypto_secretbox_MACBYTES: number;
2278
+ readonly crypto_secretbox_MESSAGEBYTES_MAX: number;
2279
+ readonly crypto_secretbox_NONCEBYTES: number;
2280
+ readonly crypto_secretbox_xchacha20poly1305_KEYBYTES: number;
2281
+ readonly crypto_secretbox_xchacha20poly1305_MACBYTES: number;
2282
+ readonly crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX: number;
2283
+ readonly crypto_secretbox_xchacha20poly1305_NONCEBYTES: number;
2284
+ readonly crypto_secretbox_xsalsa20poly1305_KEYBYTES: number;
2285
+ readonly crypto_secretbox_xsalsa20poly1305_MACBYTES: number;
2286
+ readonly crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX: number;
2287
+ readonly crypto_secretbox_xsalsa20poly1305_NONCEBYTES: number;
2288
+ readonly crypto_secretstream_xchacha20poly1305_ABYTES: number;
2289
+ readonly crypto_secretstream_xchacha20poly1305_HEADERBYTES: number;
2290
+ readonly crypto_secretstream_xchacha20poly1305_KEYBYTES: number;
2291
+ readonly crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX: number;
2292
+ readonly crypto_secretstream_xchacha20poly1305_TAG_FINAL: number;
2293
+ readonly crypto_secretstream_xchacha20poly1305_TAG_MESSAGE: number;
2294
+ readonly crypto_secretstream_xchacha20poly1305_TAG_PUSH: number;
2295
+ readonly crypto_secretstream_xchacha20poly1305_TAG_REKEY: number;
2296
+ readonly crypto_shorthash_BYTES: number;
2297
+ readonly crypto_shorthash_KEYBYTES: number;
2298
+ readonly crypto_shorthash_siphash24_BYTES: number;
2299
+ readonly crypto_shorthash_siphash24_KEYBYTES: number;
2300
+ readonly crypto_shorthash_siphashx24_BYTES: number;
2301
+ readonly crypto_shorthash_siphashx24_KEYBYTES: number;
2302
+ readonly crypto_sign_BYTES: number;
2303
+ readonly crypto_sign_MESSAGEBYTES_MAX: number;
2304
+ readonly crypto_sign_PUBLICKEYBYTES: number;
2305
+ readonly crypto_sign_SECRETKEYBYTES: number;
2306
+ readonly crypto_sign_SEEDBYTES: number;
2307
+ readonly crypto_sign_ed25519_BYTES: number;
2308
+ readonly crypto_sign_ed25519_MESSAGEBYTES_MAX: number;
2309
+ readonly crypto_sign_ed25519_PUBLICKEYBYTES: number;
2310
+ readonly crypto_sign_ed25519_SECRETKEYBYTES: number;
2311
+ readonly crypto_sign_ed25519_SEEDBYTES: number;
2312
+ readonly crypto_stream_KEYBYTES: number;
2313
+ readonly crypto_stream_MESSAGEBYTES_MAX: number;
2314
+ readonly crypto_stream_NONCEBYTES: number;
2315
+ readonly crypto_stream_chacha20_IETF_KEYBYTES: number;
2316
+ readonly crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX: number;
2317
+ readonly crypto_stream_chacha20_IETF_NONCEBYTES: number;
2318
+ readonly crypto_stream_chacha20_KEYBYTES: number;
2319
+ readonly crypto_stream_chacha20_MESSAGEBYTES_MAX: number;
2320
+ readonly crypto_stream_chacha20_NONCEBYTES: number;
2321
+ readonly crypto_stream_chacha20_ietf_KEYBYTES: number;
2322
+ readonly crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX: number;
2323
+ readonly crypto_stream_chacha20_ietf_NONCEBYTES: number;
2324
+ readonly crypto_stream_salsa2012_KEYBYTES: number;
2325
+ readonly crypto_stream_salsa2012_MESSAGEBYTES_MAX: number;
2326
+ readonly crypto_stream_salsa2012_NONCEBYTES: number;
2327
+ readonly crypto_stream_salsa208_KEYBYTES: number;
2328
+ readonly crypto_stream_salsa208_MESSAGEBYTES_MAX: number;
2329
+ readonly crypto_stream_salsa208_NONCEBYTES: number;
2330
+ readonly crypto_stream_salsa20_KEYBYTES: number;
2331
+ readonly crypto_stream_salsa20_MESSAGEBYTES_MAX: number;
2332
+ readonly crypto_stream_salsa20_NONCEBYTES: number;
2333
+ readonly crypto_stream_xchacha20_KEYBYTES: number;
2334
+ readonly crypto_stream_xchacha20_MESSAGEBYTES_MAX: number;
2335
+ readonly crypto_stream_xchacha20_NONCEBYTES: number;
2336
+ readonly crypto_stream_xsalsa20_KEYBYTES: number;
2337
+ readonly crypto_stream_xsalsa20_MESSAGEBYTES_MAX: number;
2338
+ readonly crypto_stream_xsalsa20_NONCEBYTES: number;
2339
+ readonly crypto_xof_shake128_BLOCKBYTES: number;
2340
+ readonly crypto_xof_shake128_STATEBYTES: number;
2341
+ readonly crypto_xof_shake256_BLOCKBYTES: number;
2342
+ readonly crypto_xof_shake256_STATEBYTES: number;
2343
+ readonly crypto_xof_turboshake128_BLOCKBYTES: number;
2344
+ readonly crypto_xof_turboshake128_STATEBYTES: number;
2345
+ readonly crypto_xof_turboshake256_BLOCKBYTES: number;
2346
+ readonly crypto_xof_turboshake256_STATEBYTES: number;
2347
+ readonly crypto_verify_16_BYTES: number;
2348
+ readonly crypto_verify_32_BYTES: number;
2349
+ readonly crypto_verify_64_BYTES: number;
2350
+ crypto_aead_aegis128l_decrypt: typeof crypto_aead_aegis128l_decrypt;
2351
+ crypto_aead_aegis128l_decrypt_detached: typeof crypto_aead_aegis128l_decrypt_detached;
2352
+ crypto_aead_aegis128l_encrypt: typeof crypto_aead_aegis128l_encrypt;
2353
+ crypto_aead_aegis128l_encrypt_detached: typeof crypto_aead_aegis128l_encrypt_detached;
2354
+ crypto_aead_aegis128l_keygen: typeof crypto_aead_aegis128l_keygen;
2355
+ crypto_aead_aegis256_decrypt: typeof crypto_aead_aegis256_decrypt;
2356
+ crypto_aead_aegis256_decrypt_detached: typeof crypto_aead_aegis256_decrypt_detached;
2357
+ crypto_aead_aegis256_encrypt: typeof crypto_aead_aegis256_encrypt;
2358
+ crypto_aead_aegis256_encrypt_detached: typeof crypto_aead_aegis256_encrypt_detached;
2359
+ crypto_aead_aegis256_keygen: typeof crypto_aead_aegis256_keygen;
2360
+ crypto_aead_chacha20poly1305_decrypt: typeof crypto_aead_chacha20poly1305_decrypt;
2361
+ crypto_aead_chacha20poly1305_decrypt_detached: typeof crypto_aead_chacha20poly1305_decrypt_detached;
2362
+ crypto_aead_chacha20poly1305_encrypt: typeof crypto_aead_chacha20poly1305_encrypt;
2363
+ crypto_aead_chacha20poly1305_encrypt_detached: typeof crypto_aead_chacha20poly1305_encrypt_detached;
2364
+ crypto_aead_chacha20poly1305_ietf_decrypt: typeof crypto_aead_chacha20poly1305_ietf_decrypt;
2365
+ crypto_aead_chacha20poly1305_ietf_decrypt_detached: typeof crypto_aead_chacha20poly1305_ietf_decrypt_detached;
2366
+ crypto_aead_chacha20poly1305_ietf_encrypt: typeof crypto_aead_chacha20poly1305_ietf_encrypt;
2367
+ crypto_aead_chacha20poly1305_ietf_encrypt_detached: typeof crypto_aead_chacha20poly1305_ietf_encrypt_detached;
2368
+ crypto_aead_chacha20poly1305_ietf_keygen: typeof crypto_aead_chacha20poly1305_ietf_keygen;
2369
+ crypto_aead_chacha20poly1305_keygen: typeof crypto_aead_chacha20poly1305_keygen;
2370
+ crypto_aead_xchacha20poly1305_ietf_decrypt: typeof crypto_aead_xchacha20poly1305_ietf_decrypt;
2371
+ crypto_aead_xchacha20poly1305_ietf_decrypt_detached: typeof crypto_aead_xchacha20poly1305_ietf_decrypt_detached;
2372
+ crypto_aead_xchacha20poly1305_ietf_encrypt: typeof crypto_aead_xchacha20poly1305_ietf_encrypt;
2373
+ crypto_aead_xchacha20poly1305_ietf_encrypt_detached: typeof crypto_aead_xchacha20poly1305_ietf_encrypt_detached;
2374
+ crypto_aead_xchacha20poly1305_ietf_keygen: typeof crypto_aead_xchacha20poly1305_ietf_keygen;
2375
+ crypto_auth: typeof crypto_auth;
2376
+ crypto_auth_hmacsha256: typeof crypto_auth_hmacsha256;
2377
+ crypto_auth_hmacsha256_final: typeof crypto_auth_hmacsha256_final;
2378
+ crypto_auth_hmacsha256_init: typeof crypto_auth_hmacsha256_init;
2379
+ crypto_auth_hmacsha256_keygen: typeof crypto_auth_hmacsha256_keygen;
2380
+ crypto_auth_hmacsha256_update: typeof crypto_auth_hmacsha256_update;
2381
+ crypto_auth_hmacsha256_verify: typeof crypto_auth_hmacsha256_verify;
2382
+ crypto_auth_hmacsha512: typeof crypto_auth_hmacsha512;
2383
+ crypto_auth_hmacsha512256: typeof crypto_auth_hmacsha512256;
2384
+ crypto_auth_hmacsha512256_final: typeof crypto_auth_hmacsha512256_final;
2385
+ crypto_auth_hmacsha512256_init: typeof crypto_auth_hmacsha512256_init;
2386
+ crypto_auth_hmacsha512256_keygen: typeof crypto_auth_hmacsha512256_keygen;
2387
+ crypto_auth_hmacsha512256_update: typeof crypto_auth_hmacsha512256_update;
2388
+ crypto_auth_hmacsha512256_verify: typeof crypto_auth_hmacsha512256_verify;
2389
+ crypto_auth_hmacsha512_final: typeof crypto_auth_hmacsha512_final;
2390
+ crypto_auth_hmacsha512_init: typeof crypto_auth_hmacsha512_init;
2391
+ crypto_auth_hmacsha512_keygen: typeof crypto_auth_hmacsha512_keygen;
2392
+ crypto_auth_hmacsha512_update: typeof crypto_auth_hmacsha512_update;
2393
+ crypto_auth_hmacsha512_verify: typeof crypto_auth_hmacsha512_verify;
2394
+ crypto_auth_keygen: typeof crypto_auth_keygen;
2395
+ crypto_auth_verify: typeof crypto_auth_verify;
2396
+ crypto_box_beforenm: typeof crypto_box_beforenm;
2397
+ crypto_box_curve25519xchacha20poly1305_beforenm: typeof crypto_box_curve25519xchacha20poly1305_beforenm;
2398
+ crypto_box_curve25519xchacha20poly1305_detached: typeof crypto_box_curve25519xchacha20poly1305_detached;
2399
+ crypto_box_curve25519xchacha20poly1305_detached_afternm: typeof crypto_box_curve25519xchacha20poly1305_detached_afternm;
2400
+ crypto_box_curve25519xchacha20poly1305_easy: typeof crypto_box_curve25519xchacha20poly1305_easy;
2401
+ crypto_box_curve25519xchacha20poly1305_easy_afternm: typeof crypto_box_curve25519xchacha20poly1305_easy_afternm;
2402
+ crypto_box_curve25519xchacha20poly1305_keypair: typeof crypto_box_curve25519xchacha20poly1305_keypair;
2403
+ crypto_box_curve25519xchacha20poly1305_open_detached: typeof crypto_box_curve25519xchacha20poly1305_open_detached;
2404
+ crypto_box_curve25519xchacha20poly1305_open_detached_afternm: typeof crypto_box_curve25519xchacha20poly1305_open_detached_afternm;
2405
+ crypto_box_curve25519xchacha20poly1305_open_easy: typeof crypto_box_curve25519xchacha20poly1305_open_easy;
2406
+ crypto_box_curve25519xchacha20poly1305_open_easy_afternm: typeof crypto_box_curve25519xchacha20poly1305_open_easy_afternm;
2407
+ crypto_box_curve25519xchacha20poly1305_seal: typeof crypto_box_curve25519xchacha20poly1305_seal;
2408
+ crypto_box_curve25519xchacha20poly1305_seal_open: typeof crypto_box_curve25519xchacha20poly1305_seal_open;
2409
+ crypto_box_curve25519xchacha20poly1305_seed_keypair: typeof crypto_box_curve25519xchacha20poly1305_seed_keypair;
2410
+ crypto_box_detached: typeof crypto_box_detached;
2411
+ crypto_box_easy: typeof crypto_box_easy;
2412
+ crypto_box_easy_afternm: typeof crypto_box_easy_afternm;
2413
+ crypto_box_keypair: typeof crypto_box_keypair;
2414
+ crypto_box_open_detached: typeof crypto_box_open_detached;
2415
+ crypto_box_open_easy: typeof crypto_box_open_easy;
2416
+ crypto_box_open_easy_afternm: typeof crypto_box_open_easy_afternm;
2417
+ crypto_box_seal: typeof crypto_box_seal;
2418
+ crypto_box_seal_open: typeof crypto_box_seal_open;
2419
+ crypto_box_seed_keypair: typeof crypto_box_seed_keypair;
2420
+ crypto_core_ed25519_add: typeof crypto_core_ed25519_add;
2421
+ crypto_core_ed25519_from_hash: typeof crypto_core_ed25519_from_hash;
2422
+ crypto_core_ed25519_from_uniform: typeof crypto_core_ed25519_from_uniform;
2423
+ crypto_core_ed25519_is_valid_point: typeof crypto_core_ed25519_is_valid_point;
2424
+ crypto_core_ed25519_random: typeof crypto_core_ed25519_random;
2425
+ crypto_core_ed25519_scalar_add: typeof crypto_core_ed25519_scalar_add;
2426
+ crypto_core_ed25519_scalar_complement: typeof crypto_core_ed25519_scalar_complement;
2427
+ crypto_core_ed25519_scalar_invert: typeof crypto_core_ed25519_scalar_invert;
2428
+ crypto_core_ed25519_scalar_mul: typeof crypto_core_ed25519_scalar_mul;
2429
+ crypto_core_ed25519_scalar_negate: typeof crypto_core_ed25519_scalar_negate;
2430
+ crypto_core_ed25519_scalar_random: typeof crypto_core_ed25519_scalar_random;
2431
+ crypto_core_ed25519_scalar_reduce: typeof crypto_core_ed25519_scalar_reduce;
2432
+ crypto_core_ed25519_scalar_sub: typeof crypto_core_ed25519_scalar_sub;
2433
+ crypto_core_ed25519_sub: typeof crypto_core_ed25519_sub;
2434
+ crypto_core_hchacha20: typeof crypto_core_hchacha20;
2435
+ crypto_core_hsalsa20: typeof crypto_core_hsalsa20;
2436
+ crypto_core_ristretto255_add: typeof crypto_core_ristretto255_add;
2437
+ crypto_core_ristretto255_from_hash: typeof crypto_core_ristretto255_from_hash;
2438
+ crypto_core_ristretto255_is_valid_point: typeof crypto_core_ristretto255_is_valid_point;
2439
+ crypto_core_ristretto255_random: typeof crypto_core_ristretto255_random;
2440
+ crypto_core_ristretto255_scalar_add: typeof crypto_core_ristretto255_scalar_add;
2441
+ crypto_core_ristretto255_scalar_complement: typeof crypto_core_ristretto255_scalar_complement;
2442
+ crypto_core_ristretto255_scalar_invert: typeof crypto_core_ristretto255_scalar_invert;
2443
+ crypto_core_ristretto255_scalar_mul: typeof crypto_core_ristretto255_scalar_mul;
2444
+ crypto_core_ristretto255_scalar_negate: typeof crypto_core_ristretto255_scalar_negate;
2445
+ crypto_core_ristretto255_scalar_random: typeof crypto_core_ristretto255_scalar_random;
2446
+ crypto_core_ristretto255_scalar_reduce: typeof crypto_core_ristretto255_scalar_reduce;
2447
+ crypto_core_ristretto255_scalar_sub: typeof crypto_core_ristretto255_scalar_sub;
2448
+ crypto_core_ristretto255_sub: typeof crypto_core_ristretto255_sub;
2449
+ crypto_generichash: typeof crypto_generichash;
2450
+ crypto_generichash_blake2b_salt_personal: typeof crypto_generichash_blake2b_salt_personal;
2451
+ crypto_generichash_final: typeof crypto_generichash_final;
2452
+ crypto_generichash_init: typeof crypto_generichash_init;
2453
+ crypto_generichash_keygen: typeof crypto_generichash_keygen;
2454
+ crypto_generichash_update: typeof crypto_generichash_update;
2455
+ crypto_hash: typeof crypto_hash;
2456
+ crypto_hash_sha256: typeof crypto_hash_sha256;
2457
+ crypto_hash_sha256_final: typeof crypto_hash_sha256_final;
2458
+ crypto_hash_sha256_init: typeof crypto_hash_sha256_init;
2459
+ crypto_hash_sha256_update: typeof crypto_hash_sha256_update;
2460
+ crypto_hash_sha512: typeof crypto_hash_sha512;
2461
+ crypto_hash_sha512_final: typeof crypto_hash_sha512_final;
2462
+ crypto_hash_sha512_init: typeof crypto_hash_sha512_init;
2463
+ crypto_hash_sha512_update: typeof crypto_hash_sha512_update;
2464
+ crypto_ipcrypt_decrypt: typeof crypto_ipcrypt_decrypt;
2465
+ crypto_ipcrypt_encrypt: typeof crypto_ipcrypt_encrypt;
2466
+ crypto_ipcrypt_keygen: typeof crypto_ipcrypt_keygen;
2467
+ crypto_ipcrypt_nd_decrypt: typeof crypto_ipcrypt_nd_decrypt;
2468
+ crypto_ipcrypt_nd_encrypt: typeof crypto_ipcrypt_nd_encrypt;
2469
+ crypto_ipcrypt_nd_keygen: typeof crypto_ipcrypt_nd_keygen;
2470
+ crypto_ipcrypt_ndx_decrypt: typeof crypto_ipcrypt_ndx_decrypt;
2471
+ crypto_ipcrypt_ndx_encrypt: typeof crypto_ipcrypt_ndx_encrypt;
2472
+ crypto_ipcrypt_ndx_keygen: typeof crypto_ipcrypt_ndx_keygen;
2473
+ crypto_ipcrypt_pfx_decrypt: typeof crypto_ipcrypt_pfx_decrypt;
2474
+ crypto_ipcrypt_pfx_encrypt: typeof crypto_ipcrypt_pfx_encrypt;
2475
+ crypto_ipcrypt_pfx_keygen: typeof crypto_ipcrypt_pfx_keygen;
2476
+ crypto_kdf_derive_from_key: typeof crypto_kdf_derive_from_key;
2477
+ crypto_kdf_keygen: typeof crypto_kdf_keygen;
2478
+ crypto_kx_client_session_keys: typeof crypto_kx_client_session_keys;
2479
+ crypto_kx_keypair: typeof crypto_kx_keypair;
2480
+ crypto_kx_seed_keypair: typeof crypto_kx_seed_keypair;
2481
+ crypto_kx_server_session_keys: typeof crypto_kx_server_session_keys;
2482
+ crypto_onetimeauth: typeof crypto_onetimeauth;
2483
+ crypto_onetimeauth_final: typeof crypto_onetimeauth_final;
2484
+ crypto_onetimeauth_init: typeof crypto_onetimeauth_init;
2485
+ crypto_onetimeauth_keygen: typeof crypto_onetimeauth_keygen;
2486
+ crypto_onetimeauth_update: typeof crypto_onetimeauth_update;
2487
+ crypto_onetimeauth_verify: typeof crypto_onetimeauth_verify;
2488
+ crypto_pwhash: typeof crypto_pwhash;
2489
+ crypto_pwhash_scryptsalsa208sha256: typeof crypto_pwhash_scryptsalsa208sha256;
2490
+ crypto_pwhash_scryptsalsa208sha256_ll: typeof crypto_pwhash_scryptsalsa208sha256_ll;
2491
+ crypto_pwhash_scryptsalsa208sha256_str: typeof crypto_pwhash_scryptsalsa208sha256_str;
2492
+ crypto_pwhash_scryptsalsa208sha256_str_verify: typeof crypto_pwhash_scryptsalsa208sha256_str_verify;
2493
+ crypto_pwhash_str: typeof crypto_pwhash_str;
2494
+ crypto_pwhash_str_needs_rehash: typeof crypto_pwhash_str_needs_rehash;
2495
+ crypto_pwhash_str_verify: typeof crypto_pwhash_str_verify;
2496
+ crypto_scalarmult: typeof crypto_scalarmult;
2497
+ crypto_scalarmult_base: typeof crypto_scalarmult_base;
2498
+ crypto_scalarmult_ed25519: typeof crypto_scalarmult_ed25519;
2499
+ crypto_scalarmult_ed25519_base: typeof crypto_scalarmult_ed25519_base;
2500
+ crypto_scalarmult_ed25519_base_noclamp: typeof crypto_scalarmult_ed25519_base_noclamp;
2501
+ crypto_scalarmult_ed25519_noclamp: typeof crypto_scalarmult_ed25519_noclamp;
2502
+ crypto_scalarmult_ristretto255: typeof crypto_scalarmult_ristretto255;
2503
+ crypto_scalarmult_ristretto255_base: typeof crypto_scalarmult_ristretto255_base;
2504
+ crypto_secretbox_detached: typeof crypto_secretbox_detached;
2505
+ crypto_secretbox_easy: typeof crypto_secretbox_easy;
2506
+ crypto_secretbox_keygen: typeof crypto_secretbox_keygen;
2507
+ crypto_secretbox_open_detached: typeof crypto_secretbox_open_detached;
2508
+ crypto_secretbox_open_easy: typeof crypto_secretbox_open_easy;
2509
+ crypto_secretstream_xchacha20poly1305_init_pull: typeof crypto_secretstream_xchacha20poly1305_init_pull;
2510
+ crypto_secretstream_xchacha20poly1305_init_push: typeof crypto_secretstream_xchacha20poly1305_init_push;
2511
+ crypto_secretstream_xchacha20poly1305_keygen: typeof crypto_secretstream_xchacha20poly1305_keygen;
2512
+ crypto_secretstream_xchacha20poly1305_pull: typeof crypto_secretstream_xchacha20poly1305_pull;
2513
+ crypto_secretstream_xchacha20poly1305_push: typeof crypto_secretstream_xchacha20poly1305_push;
2514
+ crypto_secretstream_xchacha20poly1305_rekey: typeof crypto_secretstream_xchacha20poly1305_rekey;
2515
+ crypto_shorthash: typeof crypto_shorthash;
2516
+ crypto_shorthash_keygen: typeof crypto_shorthash_keygen;
2517
+ crypto_shorthash_siphashx24: typeof crypto_shorthash_siphashx24;
2518
+ crypto_sign: typeof crypto_sign;
2519
+ crypto_sign_detached: typeof crypto_sign_detached;
2520
+ crypto_sign_ed25519_pk_to_curve25519: typeof crypto_sign_ed25519_pk_to_curve25519;
2521
+ crypto_sign_ed25519_sk_to_curve25519: typeof crypto_sign_ed25519_sk_to_curve25519;
2522
+ crypto_sign_ed25519_sk_to_pk: typeof crypto_sign_ed25519_sk_to_pk;
2523
+ crypto_sign_ed25519_sk_to_seed: typeof crypto_sign_ed25519_sk_to_seed;
2524
+ crypto_sign_final_create: typeof crypto_sign_final_create;
2525
+ crypto_sign_final_verify: typeof crypto_sign_final_verify;
2526
+ crypto_sign_init: typeof crypto_sign_init;
2527
+ crypto_sign_keypair: typeof crypto_sign_keypair;
2528
+ crypto_sign_open: typeof crypto_sign_open;
2529
+ crypto_sign_seed_keypair: typeof crypto_sign_seed_keypair;
2530
+ crypto_sign_update: typeof crypto_sign_update;
2531
+ crypto_sign_verify_detached: typeof crypto_sign_verify_detached;
2532
+ crypto_stream_chacha20: typeof crypto_stream_chacha20;
2533
+ crypto_stream_chacha20_ietf_xor: typeof crypto_stream_chacha20_ietf_xor;
2534
+ crypto_stream_chacha20_ietf_xor_ic: typeof crypto_stream_chacha20_ietf_xor_ic;
2535
+ crypto_stream_chacha20_keygen: typeof crypto_stream_chacha20_keygen;
2536
+ crypto_stream_chacha20_xor: typeof crypto_stream_chacha20_xor;
2537
+ crypto_stream_chacha20_xor_ic: typeof crypto_stream_chacha20_xor_ic;
2538
+ crypto_stream_keygen: typeof crypto_stream_keygen;
2539
+ crypto_stream_xchacha20_keygen: typeof crypto_stream_xchacha20_keygen;
2540
+ crypto_stream_xchacha20_xor: typeof crypto_stream_xchacha20_xor;
2541
+ crypto_stream_xchacha20_xor_ic: typeof crypto_stream_xchacha20_xor_ic;
2542
+ crypto_xof_shake128: typeof crypto_xof_shake128;
2543
+ crypto_xof_shake128_init: typeof crypto_xof_shake128_init;
2544
+ crypto_xof_shake128_init_with_domain: typeof crypto_xof_shake128_init_with_domain;
2545
+ crypto_xof_shake128_squeeze: typeof crypto_xof_shake128_squeeze;
2546
+ crypto_xof_shake128_update: typeof crypto_xof_shake128_update;
2547
+ crypto_xof_shake256: typeof crypto_xof_shake256;
2548
+ crypto_xof_shake256_init: typeof crypto_xof_shake256_init;
2549
+ crypto_xof_shake256_init_with_domain: typeof crypto_xof_shake256_init_with_domain;
2550
+ crypto_xof_shake256_squeeze: typeof crypto_xof_shake256_squeeze;
2551
+ crypto_xof_shake256_update: typeof crypto_xof_shake256_update;
2552
+ crypto_xof_turboshake128: typeof crypto_xof_turboshake128;
2553
+ crypto_xof_turboshake128_init: typeof crypto_xof_turboshake128_init;
2554
+ crypto_xof_turboshake128_init_with_domain: typeof crypto_xof_turboshake128_init_with_domain;
2555
+ crypto_xof_turboshake128_squeeze: typeof crypto_xof_turboshake128_squeeze;
2556
+ crypto_xof_turboshake128_update: typeof crypto_xof_turboshake128_update;
2557
+ crypto_xof_turboshake256: typeof crypto_xof_turboshake256;
2558
+ crypto_xof_turboshake256_init: typeof crypto_xof_turboshake256_init;
2559
+ crypto_xof_turboshake256_init_with_domain: typeof crypto_xof_turboshake256_init_with_domain;
2560
+ crypto_xof_turboshake256_squeeze: typeof crypto_xof_turboshake256_squeeze;
2561
+ crypto_xof_turboshake256_update: typeof crypto_xof_turboshake256_update;
2562
+ randombytes_buf: typeof randombytes_buf;
2563
+ randombytes_buf_deterministic: typeof randombytes_buf_deterministic;
2564
+ randombytes_close: typeof randombytes_close;
2565
+ randombytes_random: typeof randombytes_random;
2566
+ randombytes_set_implementation: typeof randombytes_set_implementation;
2567
+ randombytes_stir: typeof randombytes_stir;
2568
+ randombytes_uniform: typeof randombytes_uniform;
2569
+ sodium_bin2ip: typeof sodium_bin2ip;
2570
+ sodium_ip2bin: typeof sodium_ip2bin;
2571
+ sodium_version_string: typeof sodium_version_string;
2572
+ };
2573
+
2574
+ export default sodium;