/
usr
/
include
/
sodium
/
/usr/include/sodium
mkdir
upload
Name
Size
Mode
Actions
core.h
391
0644
edit
dl
rm
crypto_aead_aes256gcm.h
7980
0644
edit
dl
rm
crypto_aead_chacha20poly1305.h
8782
0644
edit
dl
rm
crypto_aead_xchacha20poly1305.h
4848
0644
edit
dl
rm
crypto_auth.h
1143
0644
edit
dl
rm
crypto_auth_hmacsha256.h
2136
0644
edit
dl
rm
crypto_auth_hmacsha512.h
2123
0644
edit
dl
rm
crypto_auth_hmacsha512256.h
2133
0644
edit
dl
rm
crypto_box.h
6838
0644
edit
dl
rm
crypto_box_curve25519xchacha20poly1305.h
7957
0644
edit
dl
rm
crypto_box_curve25519xsalsa20poly1305.h
4697
0644
edit
dl
rm
crypto_core_ed25519.h
2898
0644
edit
dl
rm
crypto_core_hchacha20.h
816
0644
edit
dl
rm
crypto_core_hsalsa20.h
804
0644
edit
dl
rm
crypto_core_ristretto255.h
3140
0644
edit
dl
rm
crypto_core_salsa20.h
792
0644
edit
dl
rm
crypto_core_salsa208.h
968
0644
edit
dl
rm
crypto_core_salsa2012.h
816
0644
edit
dl
rm
crypto_generichash.h
2495
0644
edit
dl
rm
crypto_generichash_blake2b.h
3963
0644
edit
dl
rm
crypto_hash.h
901
0644
edit
dl
rm
crypto_hash_sha256.h
1492
0644
edit
dl
rm
crypto_hash_sha512.h
1496
0644
edit
dl
rm
crypto_kdf.h
1308
0644
edit
dl
rm
crypto_kdf_blake2b.h
1071
0644
edit
dl
rm
crypto_kx.h
2201
0644
edit
dl
rm
crypto_onetimeauth.h
1912
0644
edit
dl
rm
crypto_onetimeauth_poly1305.h
2198
0644
edit
dl
rm
crypto_pwhash.h
4966
0644
edit
dl
rm
crypto_pwhash_argon2i.h
3919
0644
edit
dl
rm
crypto_pwhash_argon2id.h
3981
0644
edit
dl
rm
crypto_pwhash_scryptsalsa208sha256.h
4688
0644
edit
dl
rm
crypto_scalarmult.h
1184
0644
edit
dl
rm
crypto_scalarmult_curve25519.h
1098
0644
edit
dl
rm
crypto_scalarmult_ed25519.h
1406
0644
edit
dl
rm
crypto_scalarmult_ristretto255.h
1119
0644
edit
dl
rm
crypto_secretbox.h
3316
0644
edit
dl
rm
crypto_secretbox_xchacha20poly1305.h
2853
0644
edit
dl
rm
crypto_secretbox_xsalsa20poly1305.h
2419
0644
edit
dl
rm
crypto_secretstream_xchacha20poly1305.h
3832
0644
edit
dl
rm
crypto_shorthash.h
960
0644
edit
dl
rm
crypto_shorthash_siphash24.h
1236
0644
edit
dl
rm
crypto_sign.h
3353
0644
edit
dl
rm
crypto_sign_ed25519.h
4341
0644
edit
dl
rm
crypto_sign_edwards25519sha512batch.h
2053
0644
edit
dl
rm
crypto_stream.h
1606
0644
edit
dl
rm
crypto_stream_chacha20.h
3672
0644
edit
dl
rm
crypto_stream_salsa20.h
1836
0644
edit
dl
rm
crypto_stream_salsa208.h
1731
0644
edit
dl
rm
crypto_stream_salsa2012.h
1532
0644
edit
dl
rm
crypto_stream_xchacha20.h
1875
0644
edit
dl
rm
crypto_stream_xsalsa20.h
1856
0644
edit
dl
rm
crypto_verify_16.h
419
0644
edit
dl
rm
crypto_verify_32.h
419
0644
edit
dl
rm
crypto_verify_64.h
419
0644
edit
dl
rm
export.h
1347
0644
edit
dl
rm
randombytes.h
1847
0644
edit
dl
rm
randombytes_internal_random.h
427
0644
edit
dl
rm
randombytes_sysrandom.h
282
0644
edit
dl
rm
runtime.h
889
0644
edit
dl
rm
utils.h
6149
0644
edit
dl
rm
version.h
509
0644
edit
dl
rm
Edit:
/usr/include/sodium/crypto_pwhash.h
(4966B)
#ifndef crypto_pwhash_H #define crypto_pwhash_H #include <stddef.h> #include "crypto_pwhash_argon2i.h" #include "crypto_pwhash_argon2id.h" #include "export.h" #ifdef __cplusplus # ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wlong-long" # endif extern "C" { #endif #define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 SODIUM_EXPORT int crypto_pwhash_alg_argon2i13(void); #define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 SODIUM_EXPORT int crypto_pwhash_alg_argon2id13(void); #define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 SODIUM_EXPORT int crypto_pwhash_alg_default(void); #define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN SODIUM_EXPORT size_t crypto_pwhash_bytes_min(void); #define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX SODIUM_EXPORT size_t crypto_pwhash_bytes_max(void); #define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN SODIUM_EXPORT size_t crypto_pwhash_passwd_min(void); #define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX SODIUM_EXPORT size_t crypto_pwhash_passwd_max(void); #define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES SODIUM_EXPORT size_t crypto_pwhash_saltbytes(void); #define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES SODIUM_EXPORT size_t crypto_pwhash_strbytes(void); #define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX SODIUM_EXPORT const char *crypto_pwhash_strprefix(void); #define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN SODIUM_EXPORT size_t crypto_pwhash_opslimit_min(void); #define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX SODIUM_EXPORT size_t crypto_pwhash_opslimit_max(void); #define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN SODIUM_EXPORT size_t crypto_pwhash_memlimit_min(void); #define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX SODIUM_EXPORT size_t crypto_pwhash_memlimit_max(void); #define crypto_pwhash_OPSLIMIT_INTERACTIVE crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE SODIUM_EXPORT size_t crypto_pwhash_opslimit_interactive(void); #define crypto_pwhash_MEMLIMIT_INTERACTIVE crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE SODIUM_EXPORT size_t crypto_pwhash_memlimit_interactive(void); #define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE SODIUM_EXPORT size_t crypto_pwhash_opslimit_moderate(void); #define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE SODIUM_EXPORT size_t crypto_pwhash_memlimit_moderate(void); #define crypto_pwhash_OPSLIMIT_SENSITIVE crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE SODIUM_EXPORT size_t crypto_pwhash_opslimit_sensitive(void); #define crypto_pwhash_MEMLIMIT_SENSITIVE crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE SODIUM_EXPORT size_t crypto_pwhash_memlimit_sensitive(void); /* * With this function, do not forget to store all parameters, including the * algorithm identifier in order to produce deterministic output. * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, * may change. */ SODIUM_EXPORT int crypto_pwhash(unsigned char * const out, unsigned long long outlen, const char * const passwd, unsigned long long passwdlen, const unsigned char * const salt, unsigned long long opslimit, size_t memlimit, int alg) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); /* * The output string already includes all the required parameters, including * the algorithm identifier. The string is all that has to be stored in * order to verify a password. */ SODIUM_EXPORT int crypto_pwhash_str(char out[crypto_pwhash_STRBYTES], const char * const passwd, unsigned long long passwdlen, unsigned long long opslimit, size_t memlimit) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_pwhash_str_alg(char out[crypto_pwhash_STRBYTES], const char * const passwd, unsigned long long passwdlen, unsigned long long opslimit, size_t memlimit, int alg) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_pwhash_str_verify(const char str[crypto_pwhash_STRBYTES], const char * const passwd, unsigned long long passwdlen) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_pwhash_str_needs_rehash(const char str[crypto_pwhash_STRBYTES], unsigned long long opslimit, size_t memlimit) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); #define crypto_pwhash_PRIMITIVE "argon2i" SODIUM_EXPORT const char *crypto_pwhash_primitive(void) __attribute__ ((warn_unused_result)); #ifdef __cplusplus } #endif #endif
Save
cmd:
run