Added preliminary sha1 support