Re-exports§
pub use Argon2_type as argon2_type;
pub use Argon2_version as argon2_version;
Structs§
Constants§
- ARGO
N2_ AD_ PTR_ MISMATCH - ARGO
N2_ AD_ TOO_ LONG - ARGO
N2_ AD_ TOO_ SHORT - ARGO
N2_ ALLOCATE_ MEMORY_ CBK_ NULL - ARGO
N2_ DECODING_ FAIL - ARGO
N2_ DECODING_ LENGTH_ FAIL - ARGO
N2_ DEFAULT_ FLAGS - Flags to determine which fields are securely wiped (default = no wipe).
- ARGO
N2_ ENCODING_ FAIL - ARGO
N2_ FLAG_ CLEAR_ PASSWORD - ARGO
N2_ FLAG_ CLEAR_ SECRET - ARGO
N2_ FREE_ MEMORY_ CBK_ NULL - ARGO
N2_ INCORRECT_ PARAMETER - ARGO
N2_ INCORRECT_ TYPE - ARGO
N2_ LANES_ TOO_ FEW - ARGO
N2_ LANES_ TOO_ MANY - ARGO
N2_ MAX_ AD_ LENGTH - Maximum associated data length in bytes
- ARGO
N2_ MAX_ LANES - Maximum number of lanes (degree of parallelism)
- ARGO
N2_ MAX_ MEMORY - Maximum number of memory blocks (each of BLOCK_SIZE bytes)
- ARGO
N2_ MAX_ OUTLEN - Maximum digest size in bytes
- ARGO
N2_ MAX_ PWD_ LENGTH - Maximum password length in bytes
- ARGO
N2_ MAX_ SALT_ LENGTH - Maximum salt length in bytes
- ARGO
N2_ MAX_ SECRET - Maximum key length in bytes
- ARGO
N2_ MAX_ THREADS - Maximum number of threads
- ARGO
N2_ MAX_ TIME - Maximum number of passes
- ARGO
N2_ MEMORY_ ALLOCATION_ ERROR - ARGO
N2_ MEMORY_ TOO_ LITTLE - ARGO
N2_ MEMORY_ TOO_ MUCH - ARGO
N2_ MIN_ AD_ LENGTH - Minimum associated data length in bytes
- ARGO
N2_ MIN_ LANES - Minimum number of lanes (degree of parallelism)
- ARGO
N2_ MIN_ MEMORY - Minimum number of memory blocks (each of BLOCK_SIZE bytes)
- ARGO
N2_ MIN_ OUTLEN - Minimum digest size in bytes
- ARGO
N2_ MIN_ PWD_ LENGTH - Minimum password length in bytes
- ARGO
N2_ MIN_ SALT_ LENGTH - Minimum salt length in bytes
- ARGO
N2_ MIN_ SECRET - Minimum key length in bytes
- ARGO
N2_ MIN_ THREADS - Minimum number of threads
- ARGO
N2_ MIN_ TIME - Minimum number of passes
- ARGO
N2_ MISSING_ ARGS - ARGO
N2_ OK - ARGO
N2_ OUTPUT_ PTR_ NULL - ARGO
N2_ OUTPUT_ TOO_ LONG - ARGO
N2_ OUTPUT_ TOO_ SHORT - ARGO
N2_ OUT_ PTR_ MISMATCH - ARGO
N2_ PWD_ PTR_ MISMATCH - ARGO
N2_ PWD_ TOO_ LONG - ARGO
N2_ PWD_ TOO_ SHORT - ARGO
N2_ SALT_ PTR_ MISMATCH - ARGO
N2_ SALT_ TOO_ LONG - ARGO
N2_ SALT_ TOO_ SHORT - ARGO
N2_ SECRET_ PTR_ MISMATCH - ARGO
N2_ SECRET_ TOO_ LONG - ARGO
N2_ SECRET_ TOO_ SHORT - ARGO
N2_ SYNC_ POINTS - Number of synchronization points between lanes per pass
- ARGO
N2_ THREADS_ TOO_ FEW - ARGO
N2_ THREADS_ TOO_ MANY - ARGO
N2_ THREAD_ FAIL - ARGO
N2_ TIME_ TOO_ LARGE - ARGO
N2_ TIME_ TOO_ SMALL - ARGO
N2_ VERIFY_ MISMATCH - ARGO
N2_ VERSION_ 10 - ARGO
N2_ VERSION_ 13 - ARGO
N2_ VERSION_ NUMBER - Argon2_
d - Argon2_
i - Argon2_
id
Functions§
- argon2_
ctx ⚠ - Function that performs memory-hard hashing with certain degree of parallelism
- argon2_
encodedlen ⚠ - Returns the encoded hash length for the given input parameters
- argon2_
error_ ⚠message - Get the associated error message for given error code
- argon2_
hash ⚠ - argon2_
type2string ⚠ - Function that gives the string representation of an argon2_type.
- argon2_
verify ⚠ - argon2_
verify_ ⚠ctx - argon2d_
ctx ⚠ - Argon2d: Version of Argon2 that picks memory blocks depending on the password and salt. Only for side-channel-free environment!!
- argon2d_
hash_ ⚠encoded - argon2d_
hash_ ⚠raw - argon2d_
verify ⚠ - argon2d_
verify_ ⚠ctx - Verify if a given password is correct for Argon2d hashing
- argon2i_
ctx ⚠ - Argon2i: Version of Argon2 that picks memory blocks independent on the password and salt. Good for side-channels, but worse w.r.t. tradeoff attacks if only one pass is used.
- argon2i_
hash_ ⚠encoded - Hashes a password with Argon2i, producing an encoded hash
- argon2i_
hash_ ⚠raw - Hashes a password with Argon2i, producing a raw hash at @hash
- argon2i_
verify ⚠ - Verifies a password against an encoded string
- argon2i_
verify_ ⚠ctx - Verify if a given password is correct for Argon2i hashing @param context Pointer to current Argon2 context
- argon2id_
ctx ⚠ - Argon2id: Version of Argon2 where the first half-pass over memory is password-independent, the rest are password-dependent (on the password and salt). OK against side channels (they reduce to 1/2-pass Argon2i), and better with w.r.t. tradeoff attacks (similar to Argon2d).
- argon2id_
hash_ ⚠encoded - argon2id_
hash_ ⚠raw - argon2id_
verify ⚠ - argon2id_
verify_ ⚠ctx - Verify if a given password is correct for Argon2id hashing