Function argonautica_c::argonautica_verify [−][src]
#[no_mangle]pub extern "C" fn argonautica_verify(
is_valid: *mut c_int,
additional_data: *const uint8_t,
additional_data_len: uint32_t,
encoded: *const c_char,
password: *mut uint8_t,
password_len: uint32_t,
secret_key: *mut uint8_t,
secret_key_len: uint32_t,
backend: argonautica_backend_t,
password_clearing: c_int,
secret_key_clearing: c_int,
threads: uint32_t
) -> argonautica_error_t
Function that verifies a password against a hash. It will modify the provided is_valid
int
and return an argonautica_error_t
indicating whether or not the verification was successful.
On success, is_valid
will be modified to be 1
if the hash / password combination is valid
or 0
if the hash / password combination is not valid.
encoded
is a char*
pointing to the string-encoded hash.
For a description of the other arguments, see the documentation for
argonautica_hash