Got Sha1 working.

For the benefit of PGP, but otherwise, don't plan to use it much.