-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocumented-symbols
361 lines (342 loc) · 9.16 KB
/
documented-symbols
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
# v1.0.15
# Helpers
sodium_memcmp
sodium_bin2hex
sodium_hex2bin
sodium_bin2base64
sodium_base64_VARIANT_ORIGINAL
sodium_base64_VARIANT_ORIGINAL_NO_PADDING
sodium_base64_VARIANT_URLSAFE
sodium_base64_VARIANT_URLSAFE_NO_PADDING
sodium_base64_encoded_len
sodium_base642bin
sodium_increment
sodium_add
sodium_compare
sodium_is_zero
# padding
sodium_pad
sodium_unpad
# secure memory
sodium_memzero
sodium_mlock
sodium_munlock
sodium_malloc
sodium_allocarray
sodium_free
sodium_mprotect_noaccess
sodium_mprotect_readonly
sodium_mprotect_readwrite
# random
randombytes_random
randombytes_uniform
randombytes_buf
randombytes_buf_deterministic
randombytes_SEEDBYTES
randombytes_keygen
randombytes_close
randombytes_stir
# secret key
## auth enc
crypto_secretbox_easy
crypto_secretbox_open_easy
crypto_secretbox_detached
crypto_secretbox_open_detached
crypto_secretbox_keygen
crypto_secretbox_KEYBYTES
crypto_secretbox_MACBYTES
crypto_secretbox_NONCEBYTES
## enc stream
crypto_secretstream_xchacha20poly1305_keygen
crypto_secretstream_xchacha20poly1305_init_push
crypto_secretstream_xchacha20poly1305_push
crypto_secretstream_xchacha20poly1305_init_pull
crypto_secretstream_xchacha20poly1305_pull
crypto_secretstream_xchacha20poly1305_rekey
crypto_secretstream_xchacha20poly1305_ABYTES
crypto_secretstream_xchacha20poly1305_HEADERBYTES
crypto_secretstream_xchacha20poly1305_KEYBYTES
crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX
crypto_secretstream_xchacha20poly1305_TAG_MESSAGE
crypto_secretstream_xchacha20poly1305_TAG_PUSH
crypto_secretstream_xchacha20poly1305_TAG_REKEY
crypto_secretstream_xchacha20poly1305_TAG_FINAL
## enc seq
## auth
crypto_auth
crypto_auth_verify
crypto_auth_keygen
crypto_auth_BYTES
crypto_auth_KEYBYTES
## AEAD
### chacha20-poly1305
#### orig
crypto_aead_chacha20poly1305_encrypt
crypto_aead_chacha20poly1305_decrypt
crypto_aead_chacha20poly1305_encrypt_detached
crypto_aead_chacha20poly1305_decrypt_detached
crypto_aead_chacha20poly1305_keygen
crypto_aead_chacha20poly1305_KEYBYTES
crypto_aead_chacha20poly1305_NPUBBYTES
crypto_aead_chacha20poly1305_ABYTES
#### ietf
crypto_aead_chacha20poly1305_ietf_encrypt
crypto_aead_chacha20poly1305_ietf_decrypt
crypto_aead_chacha20poly1305_ietf_encrypt_detached
crypto_aead_chacha20poly1305_ietf_decrypt_detached
crypto_aead_chacha20poly1305_ietf_keygen
crypto_aead_chacha20poly1305_IETF_ABYTES
crypto_aead_chacha20poly1305_IETF_KEYBYTES
crypto_aead_chacha20poly1305_IETF_NPUBBYTES
#### xchacha
crypto_aead_xchacha20poly1305_ietf_encrypt
crypto_aead_xchacha20poly1305_ietf_decrypt
crypto_aead_xchacha20poly1305_ietf_encrypt_detached
crypto_aead_xchacha20poly1305_ietf_decrypt_detached
crypto_aead_xchacha20poly1305_ietf_keygen
crypto_aead_xchacha20poly1305_ietf_KEYBYTES
crypto_aead_xchacha20poly1305_ietf_NPUBBYTES
crypto_aead_xchacha20poly1305_ietf_ABYTES
### aes256-gcm
crypto_aead_aes256gcm_is_available
crypto_aead_aes256gcm_encrypt
crypto_aead_aes256gcm_decrypt
crypto_aead_aes256gcm_encrypt_detached
crypto_aead_aes256gcm_decrypt_detached
crypto_aead_aes256gcm_keygen
crypto_aead_aes256gcm_KEYBYTES
crypto_aead_aes256gcm_NPUBBYTES
crypto_aead_aes256gcm_ABYTES
#### aes256-gcm with precomputed.
crypto_aead_aes256gcm_beforenm
crypto_aead_aes256gcm_encrypt_afternm
crypto_aead_aes256gcm_decrypt_afternm
crypto_aead_aes256gcm_encrypt_detached_afternm
crypto_aead_aes256gcm_decrypt_detached_afternm
crypto_aead_aes256gcm_KEYBYTES
crypto_aead_aes256gcm_NPUBBYTES
crypto_aead_aes256gcm_ABYTES
# public key
## auth
crypto_box_keypair
crypto_box_seed_keypair
crypto_scalarmult_base
crypto_box_easy
crypto_box_open_easy
crypto_box_detached
crypto_box_open_detached
crypto_box_beforenm
crypto_box_easy_afternm
crypto_box_open_easy_afternm
crypto_box_detached_afternm
crypto_box_open_detached_afternm
crypto_box_PUBLICKEYBYTES
crypto_box_SECRETKEYBYTES
crypto_box_MACBYTES
crypto_box_NONCEBYTES
crypto_box_SEEDBYTES
crypto_box_BEFORENMBYTES
## sigs
crypto_sign_keypair
crypto_sign_seed_keypair
crypto_sign
crypto_sign_open
crypto_sign_detached
crypto_sign_verify_detached
crypto_sign_init
crypto_sign_update
crypto_sign_final_create
crypto_sign_final_verify
crypto_sign_ed25519_sk_to_seed
crypto_sign_ed25519_sk_to_pk
crypto_sign_PUBLICKEYBYTES
crypto_sign_SECRETKEYBYTES
crypto_sign_BYTES
crypto_sign_SEEDBYTES
## sealed boxes
crypto_box_seal
crypto_box_seal_open
crypto_box_SEALBYTES
# hashing
## generic hashing
crypto_generichash
crypto_generichash_init
crypto_generichash_update
crypto_generichash_final
crypto_generichash_keygen
crypto_generichash_BYTES
crypto_generichash_BYTES_MIN
crypto_generichash_BYTES_MAX
crypto_generichash_KEYBYTES
crypto_generichash_KEYBYTES_MIN
crypto_generichash_KEYBYTES_MAX
## sip
crypto_shorthash
crypto_shorthash_BYTES
crypto_shorthash_KEYBYTES
# pwd hashing
## argon2
crypto_pwhash
crypto_pwhash_str
crypto_pwhash_str_verify
crypto_pwhash_str_needs_rehash
crypto_pwhash_ALG_ARGON2I13
crypto_pwhash_ALG_ARGON2ID13
crypto_pwhash_ALG_DEFAULT
crypto_pwhash_BYTES_MAX
crypto_pwhash_BYTES_MIN
crypto_pwhash_MEMLIMIT_INTERACTIVE
crypto_pwhash_MEMLIMIT_MAX
crypto_pwhash_MEMLIMIT_MIN
crypto_pwhash_MEMLIMIT_MODERATE
crypto_pwhash_MEMLIMIT_SENSITIVE
crypto_pwhash_OPSLIMIT_INTERACTIVE
crypto_pwhash_OPSLIMIT_MAX
crypto_pwhash_OPSLIMIT_MIN
crypto_pwhash_OPSLIMIT_MODERATE
crypto_pwhash_OPSLIMIT_SENSITIVE
crypto_pwhash_PASSWD_MAX
crypto_pwhash_PASSWD_MIN
crypto_pwhash_SALTBYTES
crypto_pwhash_STRBYTES
crypto_pwhash_STRPREFIX
# kdf
crypto_kdf_keygen
crypto_kdf_derive_from_key
crypto_kdf_PRIMITIVE
crypto_kdf_BYTES_MIN
crypto_kdf_BYTES_MAX
crypto_kdf_CONTEXTBYTES
crypto_kdf_KEYBYTES
## Unsure if these are for completeness or meant
## misuseresistant
crypto_core_hchacha20
crypto_core_hchacha20_KEYBYTES
crypto_core_hchacha20_INPUTBYTES
crypto_core_hchacha20_OUTPUTBYTES
crypto_core_hchacha20_CONSTBYTES
# kx
crypto_kx_keypair
crypto_kx_seed_keypair
crypto_kx_client_session_keys
crypto_kx_server_session_keys
crypto_kx_PUBLICKEYBYTES
crypto_kx_SECRETKEYBYTES
crypto_kx_SEEDBYTES
crypto_kx_SESSIONKEYBYTES
crypto_kx_PRIMITIVE
# advanced
## sha2
crypto_hash_sha256
crypto_hash_sha256_init
crypto_hash_sha256_update
crypto_hash_sha256_final
crypto_hash_sha512
crypto_hash_sha512_init
crypto_hash_sha512_update
crypto_hash_sha512_final
crypto_hash_sha256_BYTES
crypto_hash_sha512_BYTES
## hmac-sha2
crypto_auth_hmacsha256
crypto_auth_hmacsha256_verify
crypto_auth_hmacsha256_init
crypto_auth_hmacsha256_update
crypto_auth_hmacsha256_final
crypto_auth_hmacsha256_keygen
crypto_auth_hmacsha512
crypto_auth_hmacsha512_verify
crypto_auth_hmacsha512_init
crypto_auth_hmacsha512_update
crypto_auth_hmacsha512_final
crypto_auth_hmacsha512_keygen
crypto_auth_hmacsha512256
crypto_auth_hmacsha512256_verify
crypto_auth_hmacsha512256_init
crypto_auth_hmacsha512256_update
crypto_auth_hmacsha512256_final
crypto_auth_hmacsha512256_keygen
crypto_auth_hmacsha256_BYTES
crypto_auth_hmacsha256_KEYBYTES
crypto_auth_hmacsha512_BYTES
crypto_auth_hmacsha512_KEYBYTES
crypto_auth_hmacsha512256_BYTES
crypto_auth_hmacsha512256_KEYBYTES
## scrypt
crypto_pwhash_scryptsalsa208sha256
crypto_pwhash_scryptsalsa208sha256_str
crypto_pwhash_scryptsalsa208sha256_str_verify
crypto_pwhash_scryptsalsa208sha256_ll
crypto_pwhash_scryptsalsa208sha256_BYTES_MIN
crypto_pwhash_scryptsalsa208sha256_BYTES_MAX
crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN
crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX
crypto_pwhash_scryptsalsa208sha256_SALTBYTES
crypto_pwhash_scryptsalsa208sha256_STRBYTES
crypto_pwhash_scryptsalsa208sha256_STRPREFIX
crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN
crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX
crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN
crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX
crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE
crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE
crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE
crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE
## dh
crypto_scalarmult_base
crypto_scalarmult
crypto_scalarmult_BYTES
crypto_scalarmult_SCALARBYTES
## ota
crypto_onetimeauth
crypto_onetimeauth_verify
crypto_onetimeauth_init
crypto_onetimeauth_update
crypto_onetimeauth_final
crypto_onetimeauth_keygen
crypto_onetimeauth_BYTES
crypto_onetimeauth_KEYBYTES
## stream
### chacha20
crypto_stream_chacha20
crypto_stream_chacha20_xor
crypto_stream_chacha20_xor_ic
crypto_stream_chacha20_ietf
crypto_stream_chacha20_ietf_xor
crypto_stream_chacha20_ietf_xor_ic
crypto_stream_chacha20_KEYBYTES
crypto_stream_chacha20_NONCEBYTES
crypto_stream_chacha20_ietf_KEYBYTES
crypto_stream_chacha20_ietf_NONCEBYTES
### xchacha20
crypto_stream_xchacha20
crypto_stream_xchacha20_xor
crypto_stream_xchacha20_xor_ic
crypto_stream_xchacha20_keygen
crypto_stream_xchacha20_KEYBYTES
crypto_stream_xchacha20_NONCEBYTES
### salsa20
crypto_stream_salsa20
crypto_stream_salsa20_xor
crypto_stream_salsa20_xor_ic
crypto_stream_salsa20_keygen
crypto_stream_salsa20_KEYBYTES
crypto_stream_salsa20_NONCEBYTES
crypto_stream_salsa2012
crypto_stream_salsa2012_xor
crypto_stream_salsa2012_keygen
crypto_stream_salsa208
crypto_stream_salsa208_xor
crypto_stream_salsa208_keygen
### xsalsa20
crypto_stream
crypto_stream_xor
crypto_stream_keygen
crypto_stream_KEYBYTES
crypto_stream_NONCEBYTES
crypto_stream_PRIMITIVE
## convert
crypto_sign_ed25519_pk_to_curve25519
crypto_sign_ed25519_sk_to_curve25519
## custom rng
randombytes_set_implementation