forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
679 lines (605 loc) · 26.6 KB
/
index.d.ts
File metadata and controls
679 lines (605 loc) · 26.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
export * from "libsodium-wrappers";
import { KeyPair, StateAddress, StringKeyPair, StringOutputFormat, Uint8ArrayOutputFormat } from "libsodium-wrappers";
export const crypto_auth_hmacsha256_BYTES: number;
export const crypto_auth_hmacsha256_KEYBYTES: number;
export const crypto_auth_hmacsha512_BYTES: number;
export const crypto_auth_hmacsha512_KEYBYTES: number;
export const crypto_auth_hmacsha512256_BYTES: number;
export const crypto_auth_hmacsha512256_KEYBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_MACBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX: number;
export const crypto_box_curve25519xchacha20poly1305_NONCEBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_SEALBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES: number;
export const crypto_box_curve25519xchacha20poly1305_SEEDBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_MACBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX: number;
export const crypto_box_curve25519xsalsa20poly1305_NONCEBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES: number;
export const crypto_box_curve25519xsalsa20poly1305_SEEDBYTES: number;
export const crypto_core_ed25519_BYTES: number;
export const crypto_core_ed25519_HASHBYTES: number;
export const crypto_core_ed25519_NONREDUCEDSCALARBYTES: number;
export const crypto_core_ed25519_SCALARBYTES: number;
export const crypto_core_ed25519_UNIFORMBYTES: number;
export const crypto_core_hchacha20_CONSTBYTES: number;
export const crypto_core_hchacha20_INPUTBYTES: number;
export const crypto_core_hchacha20_KEYBYTES: number;
export const crypto_core_hchacha20_OUTPUTBYTES: number;
export const crypto_core_hsalsa20_CONSTBYTES: number;
export const crypto_core_hsalsa20_INPUTBYTES: number;
export const crypto_core_hsalsa20_KEYBYTES: number;
export const crypto_core_hsalsa20_OUTPUTBYTES: number;
export const crypto_core_ristretto255_BYTES: number;
export const crypto_core_ristretto255_HASHBYTES: number;
export const crypto_core_ristretto255_NONREDUCEDSCALARBYTES: number;
export const crypto_core_ristretto255_SCALARBYTES: number;
export const crypto_core_salsa20_CONSTBYTES: number;
export const crypto_core_salsa20_INPUTBYTES: number;
export const crypto_core_salsa20_KEYBYTES: number;
export const crypto_core_salsa20_OUTPUTBYTES: number;
export const crypto_core_salsa2012_CONSTBYTES: number;
export const crypto_core_salsa2012_INPUTBYTES: number;
export const crypto_core_salsa2012_KEYBYTES: number;
export const crypto_core_salsa2012_OUTPUTBYTES: number;
export const crypto_generichash_blake2b_BYTES: number;
export const crypto_generichash_blake2b_BYTES_MAX: number;
export const crypto_generichash_blake2b_BYTES_MIN: number;
export const crypto_generichash_blake2b_KEYBYTES: number;
export const crypto_generichash_blake2b_KEYBYTES_MAX: number;
export const crypto_generichash_blake2b_KEYBYTES_MIN: number;
export const crypto_generichash_blake2b_PERSONALBYTES: number;
export const crypto_generichash_blake2b_SALTBYTES: number;
export const crypto_hash_sha256_BYTES: number;
export const crypto_hash_sha512_BYTES: number;
export const crypto_kdf_blake2b_BYTES_MAX: number;
export const crypto_kdf_blake2b_BYTES_MIN: number;
export const crypto_kdf_blake2b_CONTEXTBYTES: number;
export const crypto_kdf_blake2b_KEYBYTES: number;
export const crypto_onetimeauth_BYTES: number;
export const crypto_onetimeauth_KEYBYTES: number;
export const crypto_onetimeauth_poly1305_BYTES: number;
export const crypto_onetimeauth_poly1305_KEYBYTES: number;
export const crypto_pwhash_argon2i_BYTES_MAX: number;
export const crypto_pwhash_argon2i_BYTES_MIN: number;
export const crypto_pwhash_argon2i_SALTBYTES: number;
export const crypto_pwhash_argon2i_STRBYTES: number;
export const crypto_pwhash_argon2id_BYTES_MAX: number;
export const crypto_pwhash_argon2id_BYTES_MIN: number;
export const crypto_pwhash_argon2id_SALTBYTES: number;
export const crypto_pwhash_argon2id_STRBYTES: number;
export const crypto_pwhash_scryptsalsa208sha256_BYTES_MAX: number;
export const crypto_pwhash_scryptsalsa208sha256_BYTES_MIN: number;
export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: number;
export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX: number;
export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN: number;
export const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: number;
export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: number;
export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX: number;
export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN: number;
export const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: number;
export const crypto_pwhash_scryptsalsa208sha256_SALTBYTES: number;
export const crypto_pwhash_scryptsalsa208sha256_STRBYTES: number;
export const crypto_pwhash_scryptsalsa208sha256_STRPREFIX: string;
export const crypto_scalarmult_curve25519_BYTES: number;
export const crypto_scalarmult_curve25519_SCALARBYTES: number;
export const crypto_scalarmult_ed25519_BYTES: number;
export const crypto_scalarmult_ed25519_SCALARBYTES: number;
export const crypto_scalarmult_ristretto255_BYTES: number;
export const crypto_scalarmult_ristretto255_SCALARBYTES: number;
export const crypto_secretbox_xchacha20poly1305_KEYBYTES: number;
export const crypto_secretbox_xchacha20poly1305_MACBYTES: number;
export const crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX: number;
export const crypto_secretbox_xchacha20poly1305_NONCEBYTES: number;
export const crypto_secretbox_xsalsa20poly1305_KEYBYTES: number;
export const crypto_secretbox_xsalsa20poly1305_MACBYTES: number;
export const crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX: number;
export const crypto_secretbox_xsalsa20poly1305_NONCEBYTES: number;
export const crypto_shorthash_siphash24_BYTES: number;
export const crypto_shorthash_siphash24_KEYBYTES: number;
export const crypto_shorthash_siphashx24_BYTES: number;
export const crypto_shorthash_siphashx24_KEYBYTES: number;
export const crypto_sign_ed25519_BYTES: number;
export const crypto_sign_ed25519_MESSAGEBYTES_MAX: number;
export const crypto_sign_ed25519_PUBLICKEYBYTES: number;
export const crypto_sign_ed25519_SECRETKEYBYTES: number;
export const crypto_sign_ed25519_SEEDBYTES: number;
export const crypto_stream_chacha20_ietf_KEYBYTES: number;
export const crypto_stream_chacha20_IETF_KEYBYTES: number;
export const crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX: number;
export const crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX: number;
export const crypto_stream_chacha20_ietf_NONCEBYTES: number;
export const crypto_stream_chacha20_IETF_NONCEBYTES: number;
export const crypto_stream_chacha20_KEYBYTES: number;
export const crypto_stream_chacha20_MESSAGEBYTES_MAX: number;
export const crypto_stream_chacha20_NONCEBYTES: number;
export const crypto_stream_KEYBYTES: number;
export const crypto_stream_MESSAGEBYTES_MAX: number;
export const crypto_stream_NONCEBYTES: number;
export const crypto_stream_salsa20_KEYBYTES: number;
export const crypto_stream_salsa20_MESSAGEBYTES_MAX: number;
export const crypto_stream_salsa20_NONCEBYTES: number;
export const crypto_stream_salsa2012_KEYBYTES: number;
export const crypto_stream_salsa2012_MESSAGEBYTES_MAX: number;
export const crypto_stream_salsa2012_NONCEBYTES: number;
export const crypto_stream_salsa208_KEYBYTES: number;
export const crypto_stream_salsa208_MESSAGEBYTES_MAX: number;
export const crypto_stream_salsa208_NONCEBYTES: number;
export const crypto_stream_xchacha20_KEYBYTES: number;
export const crypto_stream_xchacha20_MESSAGEBYTES_MAX: number;
export const crypto_stream_xchacha20_NONCEBYTES: number;
export const crypto_stream_xsalsa20_KEYBYTES: number;
export const crypto_stream_xsalsa20_MESSAGEBYTES_MAX: number;
export const crypto_stream_xsalsa20_NONCEBYTES: number;
export const crypto_verify_16_BYTES: number;
export const crypto_verify_32_BYTES: number;
export const crypto_verify_64_BYTES: number;
export function crypto_auth_hmacsha256(
message: string | Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_auth_hmacsha256(
message: string | Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_auth_hmacsha256_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_auth_hmacsha256_keygen(outputFormat: StringOutputFormat): string;
export function crypto_auth_hmacsha256_verify(tag: Uint8Array, message: string | Uint8Array, key: Uint8Array): boolean;
export function crypto_auth_hmacsha512(
message: string | Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_auth_hmacsha512(
message: string | Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_auth_hmacsha512_keygen(outputFormat: StringOutputFormat): string;
export function crypto_auth_hmacsha512_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_auth_hmacsha512_verify(tag: Uint8Array, message: string | Uint8Array, key: Uint8Array): boolean;
export function crypto_box_curve25519xchacha20poly1305_keypair(
publicKey: Uint8Array,
secretKey: Uint8Array,
outputFormat: StringOutputFormat,
): StringKeyPair;
export function crypto_box_curve25519xchacha20poly1305_keypair(
publicKey: Uint8Array,
secretKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): KeyPair;
export function crypto_box_curve25519xchacha20poly1305_seal(
message: Uint8Array,
publicKey: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_box_curve25519xchacha20poly1305_seal(
message: Uint8Array,
publicKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_box_curve25519xchacha20poly1305_seal_open(
ciphertext: Uint8Array,
publicKey: Uint8Array,
secretKey: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_box_curve25519xchacha20poly1305_seal_open(
ciphertext: Uint8Array,
publicKey: Uint8Array,
secretKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_add(
p: Uint8Array,
q: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_add(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ristretto255_from_hash(
r: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_from_hash(r: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ristretto255_is_valid_point(point: string | Uint8Array): boolean;
export function crypto_core_ristretto255_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_core_ristretto255_random(outputFormat: StringOutputFormat): string;
export function crypto_core_ristretto255_scalar_add(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_add(
x: Uint8Array,
y: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_complement(
scalar: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_complement(
scalar: string | Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_invert(
scalar: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_invert(
scalar: string | Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_mul(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_mul(
x: Uint8Array,
y: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_negate(
scalar: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_negate(
scalar: string | Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_core_ristretto255_scalar_random(outputFormat: StringOutputFormat): string;
export function crypto_core_ristretto255_scalar_reduce(
secret: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_reduce(
secret: string | Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_scalar_sub(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_scalar_sub(
x: Uint8Array,
y: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ristretto255_sub(
p: Uint8Array,
q: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ristretto255_sub(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_generichash_blake2b_salt_personal(
subkey_len: number,
key: string | Uint8Array | null,
id: Uint8Array,
ctx: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_generichash_blake2b_salt_personal(
subkey_len: number,
key: string | Uint8Array | null,
id: Uint8Array,
ctx: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_hash_sha256(
message: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_hash_sha256(message: string | Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_hash_sha256_final(
stateAddress: StateAddress,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_hash_sha256_final(stateAddress: StateAddress, outputFormat: StringOutputFormat | null): string;
export function crypto_hash_sha256_init(): number;
export function crypto_hash_sha256_update(stateAddress: StateAddress, message: Uint8Array): void;
export function crypto_hash_sha512(
message: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_hash_sha512(message: string | Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_hash_sha512_final(
stateAddress: StateAddress,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_hash_sha512_final(stateAddress: StateAddress, outputFormat: StringOutputFormat | null): string;
export function crypto_hash_sha512_init(): number;
export function crypto_hash_sha512_update(stateAddress: StateAddress, message: Uint8Array): void;
export function crypto_onetimeauth(
message: string | Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_onetimeauth(
message: string | Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_onetimeauth_final(
stateAddress: StateAddress,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_onetimeauth_final(stateAddress: StateAddress, outputFormat: StringOutputFormat): string;
export function crypto_onetimeauth_init(key?: string | Uint8Array | null): StateAddress;
export function crypto_onetimeauth_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_onetimeauth_keygen(outputFormat: StringOutputFormat): string;
export function crypto_onetimeauth_update(stateAddress: StateAddress, message_chunk: string | Uint8Array): void;
export function crypto_onetimeauth_verify(hash: Uint8Array, message: string | Uint8Array, key: Uint8Array): boolean;
export function crypto_pwhash_scryptsalsa208sha256(
keyLength: number,
password: string | Uint8Array,
salt: Uint8Array,
opsLimit: number,
memLimit: number,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_pwhash_scryptsalsa208sha256(
keyLength: number,
password: string | Uint8Array,
salt: Uint8Array,
opsLimit: number,
memLimit: number,
outputFormat: StringOutputFormat,
): string;
export function crypto_pwhash_scryptsalsa208sha256_ll(
password: string | Uint8Array,
salt: string | Uint8Array,
opsLimit: number,
r: number,
p: number,
keyLength: number,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_pwhash_scryptsalsa208sha256_ll(
password: string | Uint8Array,
salt: string | Uint8Array,
opsLimit: number,
r: number,
p: number,
keyLength: number,
outputFormat: StringOutputFormat,
): string;
export function crypto_core_ed25519_add(
p: Uint8Array,
q: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_add(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_from_hash(
r: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_from_hash(r: string | Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_from_uniform(
r: string | Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_from_uniform(r: string | Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_is_valid_point(repr: Uint8Array): boolean;
export function crypto_core_ed25519_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_core_ed25519_random(outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_add(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_add(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_complement(
s: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_complement(s: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_invert(
s: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_invert(s: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_mul(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_mul(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_negate(
s: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_negate(s: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_random(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_core_ed25519_scalar_random(outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_reduce(
sample: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_reduce(sample: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_scalar_sub(
x: Uint8Array,
y: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_scalar_sub(x: Uint8Array, y: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_core_ed25519_sub(
p: Uint8Array,
q: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_core_ed25519_sub(p: Uint8Array, q: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_pwhash_scryptsalsa208sha256_str(
password: string | Uint8Array,
opsLimit: number,
memLimit: number,
): string;
export function crypto_pwhash_scryptsalsa208sha256_str_verify(
hashed_password: string,
password: string | Uint8Array,
): boolean;
export function crypto_scalarmult_ed25519(
n: Uint8Array,
p: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ed25519(n: Uint8Array, p: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_scalarmult_ed25519_base(
scalar: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ed25519_base(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_scalarmult_ed25519_base_noclamp(
scalar: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ed25519_base_noclamp(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_scalarmult_ed25519_noclamp(
n: Uint8Array,
p: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ed25519_noclamp(
n: Uint8Array,
p: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_scalarmult_ristretto255(
scalar: Uint8Array,
element: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ristretto255(
scalar: Uint8Array,
element: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_scalarmult_ristretto255_base(
scalar: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_scalarmult_ristretto255_base(scalar: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_shorthash_siphashx24(
message: string | Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_shorthash_siphashx24(
message: string | Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_sign_ed25519_sk_to_pk(
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_sign_ed25519_sk_to_pk(privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_sign_ed25519_sk_to_seed(
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_sign_ed25519_sk_to_seed(privateKey: Uint8Array, outputFormat: StringOutputFormat): string;
export function crypto_stream_chacha20(
outLength: number,
key: Uint8Array,
nonce: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_chacha20(
outLength: number,
key: Uint8Array,
nonce: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_chacha20_ietf_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_chacha20_ietf_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_chacha20_ietf_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_chacha20_ietf_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_chacha20_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_stream_chacha20_keygen(outputFormat: StringOutputFormat): string;
export function crypto_stream_chacha20_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_chacha20_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_chacha20_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_chacha20_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_stream_keygen(outputFormat: StringOutputFormat): string;
export function crypto_stream_xchacha20_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array;
export function crypto_stream_xchacha20_keygen(outputFormat: StringOutputFormat): string;
export function crypto_stream_xchacha20_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_xchacha20_xor(
input_message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;
export function crypto_stream_xchacha20_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
): Uint8Array;
export function crypto_stream_xchacha20_xor_ic(
input_message: string | Uint8Array,
nonce: Uint8Array,
nonce_increment: number,
key: Uint8Array,
outputFormat: StringOutputFormat,
): string;