diff --git a/src/libsodium/crypto_pwhash/argon2/argon2.c b/src/libsodium/crypto_pwhash/argon2/argon2.c index 573148dd..9bd8a472 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2.c +++ b/src/libsodium/crypto_pwhash/argon2/argon2.c @@ -234,22 +234,3 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen, int argon2i_verify(const char *encoded, const void *pwd, const size_t pwdlen) { return argon2_verify(encoded, pwd, pwdlen, Argon2_i); } - -int argon2i_ctx(argon2_context *context) { - return argon2_ctx(context, Argon2_i); -} - -int argon2i_verify_ctx(argon2_context *context, const char *hash) { - int result; - if (0 == context->outlen || NULL == hash) { - return ARGON2_OUT_PTR_MISMATCH; - } - - result = argon2_ctx(context, Argon2_i); - - if (ARGON2_OK != result) { - return result; - } - - return 0 == memcmp(hash, context->out, context->outlen); -} diff --git a/src/libsodium/crypto_pwhash/argon2/argon2.h b/src/libsodium/crypto_pwhash/argon2/argon2.h index 03be034e..0e9b8ed9 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2.h +++ b/src/libsodium/crypto_pwhash/argon2/argon2.h @@ -248,23 +248,4 @@ int argon2i_verify(const char *encoded, const void *pwd, const size_t pwdlen); /* generic function underlying the above ones */ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen, argon2_type type); - -/** - * 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. - * @param context Pointer to current Argon2 context - * @return Zero if successful, a non zero error code otherwise - */ -int argon2i_ctx(argon2_context *context); - -/** - * Verify if a given password is correct for Argon2i hashing - * @param context Pointer to current Argon2 context - * @param hash The password hash to verify. The length of the hash is - * specified by the context outlen member - * @return Zero if successful, a non zero error code otherwise - */ -int argon2i_verify_ctx(argon2_context *context, const char *hash); - #endif