003 File Manager
Current Path:
/usr/src/sys/contrib/libsodium/src/libsodium/include/sodium
usr
/
src
/
sys
/
contrib
/
libsodium
/
src
/
libsodium
/
include
/
sodium
/
📁
..
📄
core.h
(412 B)
📄
crypto_aead_aes256gcm.h
(7.36 KB)
📄
crypto_aead_chacha20poly1305.h
(8.2 KB)
📄
crypto_aead_xchacha20poly1305.h
(4.53 KB)
📄
crypto_auth.h
(1 KB)
📄
crypto_auth_hmacsha256.h
(1.9 KB)
📄
crypto_auth_hmacsha512.h
(1.89 KB)
📄
crypto_auth_hmacsha512256.h
(1.84 KB)
📄
crypto_box.h
(6.05 KB)
📄
crypto_box_curve25519xchacha20poly1305.h
(7.27 KB)
📄
crypto_box_curve25519xsalsa20poly1305.h
(4.33 KB)
📄
crypto_core_ed25519.h
(826 B)
📄
crypto_core_hchacha20.h
(769 B)
📄
crypto_core_hsalsa20.h
(757 B)
📄
crypto_core_salsa20.h
(745 B)
📄
crypto_core_salsa2012.h
(769 B)
📄
crypto_core_salsa208.h
(921 B)
📄
crypto_generichash.h
(2.24 KB)
📄
crypto_generichash_blake2b.h
(3.7 KB)
📄
crypto_hash.h
(872 B)
📄
crypto_hash_sha256.h
(1.31 KB)
📄
crypto_hash_sha512.h
(1.32 KB)
📄
crypto_kdf.h
(1.2 KB)
📄
crypto_kdf_blake2b.h
(1.01 KB)
📄
crypto_kx.h
(2 KB)
📄
crypto_onetimeauth.h
(1.67 KB)
📄
crypto_onetimeauth_poly1305.h
(1.92 KB)
📄
crypto_pwhash.h
(4.72 KB)
📄
crypto_pwhash_argon2i.h
(3.72 KB)
📄
crypto_pwhash_argon2id.h
(3.78 KB)
📄
crypto_pwhash_scryptsalsa208sha256.h
(4.45 KB)
📄
crypto_scalarmult.h
(1.08 KB)
📄
crypto_scalarmult_curve25519.h
(979 B)
📄
crypto_scalarmult_ed25519.h
(953 B)
📄
crypto_secretbox.h
(2.98 KB)
📄
crypto_secretbox_xchacha20poly1305.h
(2.62 KB)
📄
crypto_secretbox_xsalsa20poly1305.h
(2.25 KB)
📄
crypto_secretstream_xchacha20poly1305.h
(3.49 KB)
📄
crypto_shorthash.h
(878 B)
📄
crypto_shorthash_siphash24.h
(1.12 KB)
📄
crypto_sign.h
(2.96 KB)
📄
crypto_sign_ed25519.h
(3.73 KB)
📄
crypto_sign_edwards25519sha512batch.h
(1.9 KB)
📄
crypto_stream.h
(1.46 KB)
📄
crypto_stream_chacha20.h
(3.29 KB)
📄
crypto_stream_salsa20.h
(1.64 KB)
📄
crypto_stream_salsa2012.h
(1.38 KB)
📄
crypto_stream_salsa208.h
(1.61 KB)
📄
crypto_stream_xchacha20.h
(1.68 KB)
📄
crypto_stream_xsalsa20.h
(1.66 KB)
📄
crypto_verify_16.h
(393 B)
📄
crypto_verify_32.h
(393 B)
📄
crypto_verify_64.h
(393 B)
📄
export.h
(1.46 KB)
📁
private
📄
randombytes.h
(1.66 KB)
📄
randombytes_nativeclient.h
(331 B)
📄
randombytes_salsa20_random.h
(290 B)
📄
randombytes_sysrandom.h
(282 B)
📄
runtime.h
(889 B)
📄
utils.h
(5.55 KB)
📄
version.h.in
(597 B)
Editing: crypto_pwhash_argon2id.h
#ifndef crypto_pwhash_argon2id_H #define crypto_pwhash_argon2id_H #include <limits.h> #include <stddef.h> #include <stdint.h> #include "export.h" #ifdef __cplusplus # ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wlong-long" # endif extern "C" { #endif #define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 SODIUM_EXPORT int crypto_pwhash_argon2id_alg_argon2id13(void); #define crypto_pwhash_argon2id_BYTES_MIN 16U SODIUM_EXPORT size_t crypto_pwhash_argon2id_bytes_min(void); #define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN(SODIUM_SIZE_MAX, 4294967295U) SODIUM_EXPORT size_t crypto_pwhash_argon2id_bytes_max(void); #define crypto_pwhash_argon2id_PASSWD_MIN 0U SODIUM_EXPORT size_t crypto_pwhash_argon2id_passwd_min(void); #define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U SODIUM_EXPORT size_t crypto_pwhash_argon2id_passwd_max(void); #define crypto_pwhash_argon2id_SALTBYTES 16U SODIUM_EXPORT size_t crypto_pwhash_argon2id_saltbytes(void); #define crypto_pwhash_argon2id_STRBYTES 128U SODIUM_EXPORT size_t crypto_pwhash_argon2id_strbytes(void); #define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" SODIUM_EXPORT const char *crypto_pwhash_argon2id_strprefix(void); #define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U SODIUM_EXPORT size_t crypto_pwhash_argon2id_opslimit_min(void); #define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U SODIUM_EXPORT size_t crypto_pwhash_argon2id_opslimit_max(void); #define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U SODIUM_EXPORT size_t crypto_pwhash_argon2id_memlimit_min(void); #define crypto_pwhash_argon2id_MEMLIMIT_MAX \ ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? 2147483648U : 32768U) SODIUM_EXPORT size_t crypto_pwhash_argon2id_memlimit_max(void); #define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U SODIUM_EXPORT size_t crypto_pwhash_argon2id_opslimit_interactive(void); #define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U SODIUM_EXPORT size_t crypto_pwhash_argon2id_memlimit_interactive(void); #define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U SODIUM_EXPORT size_t crypto_pwhash_argon2id_opslimit_moderate(void); #define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U SODIUM_EXPORT size_t crypto_pwhash_argon2id_memlimit_moderate(void); #define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U SODIUM_EXPORT size_t crypto_pwhash_argon2id_opslimit_sensitive(void); #define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U SODIUM_EXPORT size_t crypto_pwhash_argon2id_memlimit_sensitive(void); SODIUM_EXPORT int crypto_pwhash_argon2id(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)); SODIUM_EXPORT int crypto_pwhash_argon2id_str(char out[crypto_pwhash_argon2id_STRBYTES], const char * const passwd, unsigned long long passwdlen, unsigned long long opslimit, size_t memlimit) __attribute__ ((warn_unused_result)); SODIUM_EXPORT int crypto_pwhash_argon2id_str_verify(const char str[crypto_pwhash_argon2id_STRBYTES], const char * const passwd, unsigned long long passwdlen) __attribute__ ((warn_unused_result)); SODIUM_EXPORT int crypto_pwhash_argon2id_str_needs_rehash(const char str[crypto_pwhash_argon2id_STRBYTES], unsigned long long opslimit, size_t memlimit) __attribute__ ((warn_unused_result)); #ifdef __cplusplus } #endif #endif
Upload File
Create Folder