[−][src]Module sodiumoxide::crypto::pwhash::argon2i13
Argon2 summarizes the state of the art in the design of memory-hard functions.
It aims at the highest memory filling rate and effective use of multiple computing units, while still providing defense against tradeoff attacks.
It prevents ASICs from having a significant advantage over software implementations.
Argon2i uses data-independent memory access, which is preferred for password hashing and password-based key derivation. Argon2i is invulnerable to side-channel timing attacks but weaker against Time-memory Tradeoff (TMTO) attacks. If you are unsure which Argon2 variant to use, use Argon2id, not this module.
Note: libsodium provides a limited version of the Argon2 function. The salt parameter is fixed at 128 bits and the parallelism parameter is fixed to 1.
Structs
HashedPassword |
|
MemLimit |
|
OpsLimit |
|
Salt |
|
Constants
HASHEDPASSWORDBYTES | Number of bytes in a |
MEMLIMIT_INTERACTIVE | Safe base line for |
MEMLIMIT_MODERATE |
|
MEMLIMIT_SENSITIVE |
|
OPSLIMIT_INTERACTIVE | Safe base line for |
OPSLIMIT_MODERATE |
|
OPSLIMIT_SENSITIVE |
|
SALTBYTES | Number of bytes in a |
STRPREFIX | All |
VARIANT | Variant id for the Argon2i13 algorithm |
Functions
derive_key | The |
gen_salt |
|
pwhash | The |
pwhash_verify |
|