003 File Manager
Current Path:
/usr/src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2
usr
/
src
/
sys
/
contrib
/
libsodium
/
src
/
libsodium
/
crypto_pwhash
/
argon2
/
📁
..
📄
argon2-core.c
(15.29 KB)
📄
argon2-core.h
(9.98 KB)
📄
argon2-encoding.c
(10.01 KB)
📄
argon2-encoding.h
(1.04 KB)
📄
argon2-fill-block-avx2.c
(7.83 KB)
📄
argon2-fill-block-avx512f.c
(8.02 KB)
📄
argon2-fill-block-ref.c
(8.38 KB)
📄
argon2-fill-block-ssse3.c
(7.76 KB)
📄
argon2.c
(7.87 KB)
📄
argon2.h
(10.83 KB)
📄
blake2b-long.c
(3.06 KB)
📄
blake2b-long.h
(151 B)
📄
blamka-round-avx2.h
(5.71 KB)
📄
blamka-round-avx512f.h
(4.46 KB)
📄
blamka-round-ref.h
(1.52 KB)
📄
blamka-round-ssse3.h
(5.32 KB)
📄
pwhash_argon2i.c
(7.78 KB)
📄
pwhash_argon2id.c
(6.23 KB)
Editing: argon2-encoding.h
#ifndef argon2_encoding_H #define argon2_encoding_H #include "argon2.h" /* * encode an Argon2 hash string into the provided buffer. 'dst_len' * contains the size, in characters, of the 'dst' buffer; if 'dst_len' * is less than the number of required characters (including the * terminating 0), then this function returns 0. * * if ctx->outlen is 0, then the hash string will be a salt string * (no output). if ctx->saltlen is also 0, then the string will be a * parameter-only string (no salt and no output). * * On success, ARGON2_OK is returned. * * No other parameters are checked */ int encode_string(char *dst, size_t dst_len, argon2_context *ctx, argon2_type type); /* * Decodes an Argon2 hash string into the provided structure 'ctx'. * The fields ctx.saltlen, ctx.adlen, ctx.outlen set the maximal salt, ad, out * length values * that are allowed; invalid input string causes an error * * Returned value is ARGON2_OK on success. */ int decode_string(argon2_context *ctx, const char *str, argon2_type type); #endif
Upload File
Create Folder