summaryrefslogtreecommitdiff
path: root/src/common/sha256.c
AgeCommit message (Collapse)Author
2009-08-20Add a SHA256 implementation for platforms that lack it.Nick Mathewson
(This would be everywhere running OpenSSL 0.9.7x and earlier, including all current Macintosh users.) The code is based on Tom St Denis's LibTomCrypt implementation, modified to be way less general and use Tor's existing facilities. I picked this one because it was pretty fast and pretty free, and because Python uses it too.