diff --git a/util/sha256.c b/util/sha256.c index 94db29b..3284048 100644 --- a/util/sha256.c +++ b/util/sha256.c @@ -1,12 +1,4 @@ -/* - * public domain sha256 crypt implementation - * - * original sha crypt design: http://people.redhat.com/drepper/SHA-crypt.txt - * in this implementation at least 32bit int is assumed, - * key length is limited, the $5$ prefix is mandatory, '\n' and ':' is rejected - * in the salt and rounds= setting must contain a valid iteration count, - * on error "*" is returned. - */ +/* public domain sha256 implementation based on fips180-3 */ #include #include #include @@ -14,8 +6,6 @@ #include #include "../sha256.h" -/* public domain sha256 implementation based on fips180-3 */ - static uint32_t ror(uint32_t n, int k) { return (n >> k) | (n << (32-k)); } #define Ch(x,y,z) (z ^ (x & (y ^ z))) #define Maj(x,y,z) ((x & y) | (z & (x | y)))