Move sha1.[ch] to crypt.[ch] and make crypto API independent of sha1.