CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2016/09/03 10:25:03
Modified files: lib/libc : Symbols.list lib/libc/hash : Makefile.inc sha2.c lib/libc/hidden: sha2.h Log message: Add functions for SHA512/256. The standard says you're supposed to start with different magic numbers, so we need to add some functions instead of just asking the user to truncate as desired. Sigh. SHA512 is quite a bit faster than SHA256 on 64 bit CPUs, but 256 bit hashes are usually quite sufficient. Best of both. ok deraadt tom