mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Sync argon2 implementation with upstream
This commit is contained in:
@@ -234,11 +234,11 @@ int argon2i_verify(const char *encoded, const void *pwd, const size_t pwdlen) {
|
||||
return argon2_verify(encoded, pwd, pwdlen, Argon2_i);
|
||||
}
|
||||
|
||||
int argon2i(argon2_context *context) {
|
||||
int argon2i_ctx(argon2_context *context) {
|
||||
return argon2_ctx(context, Argon2_i);
|
||||
}
|
||||
|
||||
int verify_i(argon2_context *context, const char *hash) {
|
||||
int argon2i_verify_ctx(argon2_context *context, const char *hash) {
|
||||
int result;
|
||||
if (0 == context->outlen || NULL == hash) {
|
||||
return ARGON2_OUT_PTR_MISMATCH;
|
||||
|
||||
@@ -259,7 +259,7 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
|
||||
* @param context Pointer to current Argon2 context
|
||||
* @return Zero if successful, a non zero error code otherwise
|
||||
*/
|
||||
int argon2i(argon2_context *context);
|
||||
int argon2i_ctx(argon2_context *context);
|
||||
|
||||
/*
|
||||
* Verify if a given password is correct for Argon2i hashing
|
||||
@@ -268,6 +268,6 @@ int argon2i(argon2_context *context);
|
||||
* specified by the context outlen member
|
||||
* @return Zero if successful, a non zero error code otherwise
|
||||
*/
|
||||
int verify_i(argon2_context *context, const char *hash);
|
||||
int argon2i_verify_ctx(argon2_context *context, const char *hash);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user