* Galos, David <galos...@students.rowan.edu> [2013-07-20 00:50:25 -0400]: > >> +/* > >> + * 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. > >> + */ > > > > this comment for the sha2 based crypt implementation > > not for the hash function > > Is there some replacement text that you suggest? I figure we might as well > note where this sha2 implementation originates from. Is anything further > than the fact that it's public domain known?
/* public domain sha256 implementation based on fips180-3 */ you may add that it's from the crypt code of musl libc in case somebody wants to check upstream changes