]> granicus.if.org Git - php/commitdiff
sodium ext: The default password hashing function is not supposed to be Argon2i
authorFrank Denis <github@pureftpd.org>
Tue, 8 Aug 2017 15:37:06 +0000 (17:37 +0200)
committerFrank Denis <github@pureftpd.org>
Tue, 8 Aug 2017 15:37:06 +0000 (17:37 +0200)
ext/sodium/libsodium.c

index 48b2a9ca3ba22aa96ca8b890dc5730451df47e4f..2f311e059c4f63c05071162d806492396d29a7c4 100644 (file)
@@ -1823,10 +1823,10 @@ PHP_FUNCTION(sodium_crypto_pwhash)
        }
        if (opslimit < crypto_pwhash_OPSLIMIT_INTERACTIVE) {
                zend_error(E_WARNING,
-                                  "number of operations for the argon2i function is low");
+                                  "number of operations for the password hashing function is low");
        }
        if (memlimit < crypto_pwhash_MEMLIMIT_INTERACTIVE) {
-               zend_error(E_WARNING, "maximum memory for the argon2i function is low");
+               zend_error(E_WARNING, "maximum memory for the password hashing function is low");
        }
        hash = zend_string_alloc((size_t) hash_len, 0);
        if (crypto_pwhash
@@ -1866,11 +1866,11 @@ PHP_FUNCTION(sodium_crypto_pwhash_str)
        }
        if (opslimit < crypto_pwhash_OPSLIMIT_INTERACTIVE) {
                zend_error(E_WARNING,
-                                  "number of operations for the argon2i function is low");
+                                  "number of operations for the password hashing function is low");
        }
        if (memlimit < crypto_pwhash_MEMLIMIT_INTERACTIVE) {
                zend_error(E_WARNING,
-                                  "maximum memory for the argon2i function is low");
+                                  "maximum memory for the password hashing function is low");
        }
        hash_str = zend_string_alloc(crypto_pwhash_STRBYTES - 1, 0);
        if (crypto_pwhash_str