I don't think that there is any.  But I did find this: https://gist.github.com/jhasse/990731 Also I compared the implementation with Python's SHA1 and it seems correct.