commit 50d93057523bfd3b459e2003f6fef8712c2634ec
parent 4da54928e73d89fc6a344740bf35d5470b2e7463
Author: David Galos <galosd83@students.rowan.edu>
Date: Sat, 20 Jul 2013 13:23:13 -0400
Licensing fix in util/sha256.c
Diffstat:
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git 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 <ctype.h>
#include <stdlib.h>
#include <stdio.h>
@@ -14,8 +6,6 @@
#include <stdint.h>
#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)))