hash.h: move SHA-1 implementation selection into a header file