]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sha-3 updates
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 24 Aug 2017 14:57:22 +0000 (15:57 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 24 Aug 2017 14:57:22 +0000 (15:57 +0100)
man/man5/rlm_pap.5
src/modules/rlm_pap/rlm_pap.c

index d9ff4b6001310cfde9676335eb33c7792db18712..375e18818e08a84fb324a8f9e6c3080b1814a535 100644 (file)
@@ -84,11 +84,15 @@ Header       Attribute           Description
 .br
 {ssha512}    SSHA2-512-Password  SHA2 hashed passwords, with a salt
 .br
-{ssha3}      SHA2-Password       SHA3 hashed passwords
+{ssha3}      SHA3-Password       SHA3 hashed passwords
 .br
-{ssha3-256}  SHA3-Password       SHA3 hashed passwords, with a salt
+{ssha3-224}  SHA3-224-Password   SHA3 hashed passwords, with a salt
 .br
-{ssha3-512}  SHA3-Password       SHA3 hashed passwords, with a salt
+{ssha3-256}  SHA3-256-Password   SHA3 hashed passwords, with a salt
+.br
+{ssha3-384}  SHA3-384-Password   SHA3 hashed passwords, with a salt
+.br
+{ssha3-512}  SHA3-512-Password   SHA3 hashed passwords, with a salt
 .br
 {nt}         NT-Password         Windows NT hashed passwords
 .br
index d07e74598dd17d03fe8ba4d35ca4e576cbf3518b..fe7457cdf9e71d6f934eae3ea6a55c9ea9d0b022 100644 (file)
@@ -739,12 +739,12 @@ static rlm_rcode_t CC_HINT(nonnull) pap_auth_sha_evp(rlm_pap_t const *inst, REQU
        uint8_t digest[EVP_MAX_MD_SIZE];
        unsigned int digest_len;
 
-       RDEBUG("Comparing with \"known-good\" SHA2-Password");
-
        if (inst->normify) normify(request, vp, 28);
 
        switch (vp->da->attr) {
        case FR_SHA2_PASSWORD:
+               RDEBUG("Comparing with \"known-good\" SHA2-Password");
+
                /*
                 *      All the SHA-2 algorithms produce digests of different lengths,
                 *      so it's trivial to determine which EVP_MD to use.
@@ -783,6 +783,7 @@ static rlm_rcode_t CC_HINT(nonnull) pap_auth_sha_evp(rlm_pap_t const *inst, REQU
 
 # ifdef HAVE_EVP_SHA3_512
        case FR_SHA3_PASSWORD:
+               RDEBUG("Comparing with \"known-good\" SHA3-Password");
                /*
                 *      All the SHA-3 algorithms produce digests of different lengths,
                 *      so it's trivial to determine which EVP_MD to use.
@@ -813,7 +814,7 @@ static rlm_rcode_t CC_HINT(nonnull) pap_auth_sha_evp(rlm_pap_t const *inst, REQU
                        break;
 
                default:
-                       REDEBUG("\"known good\" digest length (%zu) does not match output length of any SHA-2 digests",
+                       REDEBUG("\"known good\" digest length (%zu) does not match output length of any SHA-3 digests",
                                vp->vp_length);
                        return RLM_MODULE_INVALID;
                }