Add generic wrappers for performing message digest operations.

A DigestContext structure now wraps state for all the SHA* algorithms. Replaced the old SHA*_file functions to use these new wrappers. Also moved the digest utility functions from tests/ to crypto/.

BUG=670
TEST=Modified existing tests to use the new wrappers and they pass.

Review URL: http://codereview.chromium.org/579007
8 files changed
tree: 9448e73e4a49ec896b8211417ea9006a1faa0969
  1. common/
  2. crypto/
  3. include/
  4. tests/
  5. utils/
  6. Makefile