Skip to main content

Module error

Module error 

Source
Expand description

Error codes, mirroring argon2_error_codes from phc-winner-argon2/include/argon2.h.

Every variant carries the exact numeric value the C reference uses, so differential tests can compare Error::as_c_code() against the int returned by argon2_ctx / argon2_hash / argon2_verify.

ARGON2_OK (0) is deliberately absent: success is Ok(()) in Rust.

Enumsยง

Error
An Argon2 error.