Function that performs memory-hard hashing with certain degree of parallelism
Returns the encoded hash length for the given input parameters
Get the associated error message for given error code
Function that gives the string representation of an argon2_type.
Argon2d: Version of Argon2 that picks memory blocks depending on the password and salt. Only for side-channel-free environment!!
Verify if a given password is correct for Argon2d hashing
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.
Hashes a password with Argon2i, producing an encoded hash
Hashes a password with Argon2i, producing a raw hash at @hash
Verifies a password against an encoded string
Verify if a given password is correct for Argon2i hashing @param context Pointer to current Argon2 context
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).
Verify if a given password is correct for Argon2id hashing