From 50d93057523bfd3b459e2003f6fef8712c2634ec Mon Sep 17 00:00:00 2001 From: David Galos Date: Sat, 20 Jul 2013 13:23:13 -0400 Subject: [PATCH] Licensing fix in util/sha256.c --- util/sha256.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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)))