Finnished of sha1. Made all internal function private.