adding variant support to sha1