added sha1 functions, as yet untested