hash: move SHA-1 macros to hash.h