Remove redundant Argon2 algorithm ids

This commit is contained in:
Frank Denis
2017-06-27 16:12:07 +02:00
parent 2cb841539e
commit efd27c6489
5 changed files with 1 additions and 21 deletions
@@ -19,12 +19,6 @@ crypto_pwhash_argon2i_alg_argon2i13(void)
return crypto_pwhash_argon2i_ALG_ARGON2I13;
}
int
crypto_pwhash_argon2i_alg_argon2id13(void)
{
return crypto_pwhash_argon2i_ALG_ARGON2ID13;
}
size_t
crypto_pwhash_argon2i_bytes_min(void)
{
@@ -13,12 +13,6 @@
#define STR_HASHBYTES 32U
int
crypto_pwhash_argon2id_alg_argon2i13(void)
{
return crypto_pwhash_argon2id_ALG_ARGON2I13;
}
int
crypto_pwhash_argon2id_alg_argon2id13(void)
{
+1 -1
View File
@@ -18,7 +18,7 @@ extern "C" {
SODIUM_EXPORT
int crypto_pwhash_alg_argon2i13(void);
#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2i_ALG_ARGON2ID13
#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13
SODIUM_EXPORT
int crypto_pwhash_alg_argon2id13(void);
@@ -18,10 +18,6 @@ extern "C" {
SODIUM_EXPORT
int crypto_pwhash_argon2i_alg_argon2i13(void);
#define crypto_pwhash_argon2i_ALG_ARGON2ID13 2
SODIUM_EXPORT
int crypto_pwhash_argon2i_alg_argon2id13(void);
#define crypto_pwhash_argon2i_BYTES_MIN 16U
SODIUM_EXPORT
size_t crypto_pwhash_argon2i_bytes_min(void);
@@ -14,10 +14,6 @@
extern "C" {
#endif
#define crypto_pwhash_argon2id_ALG_ARGON2I13 1
SODIUM_EXPORT
int crypto_pwhash_argon2id_alg_argon2i13(void);
#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2
SODIUM_EXPORT
int crypto_pwhash_argon2id_alg_argon2id13(void);