From 1b47ce2e8d25023f531f4afa8f05b044c4cef111 Mon Sep 17 00:00:00 2001 From: "albertb@chromium.org" Date: Wed, 31 Mar 2010 16:18:30 +0000 Subject: First pass of a Nigori implementation for Chrome. Only unassisted key derivation is supported and there is no support for server authentication. BUG=37363 TEST=unit tests Review URL: http://codereview.chromium.org/1357003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43220 0039d316-1c4b-4281-b951-d872f2087c98 --- base/hmac.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/hmac.h') diff --git a/base/hmac.h b/base/hmac.h index bdd23a9..b915124 100644 --- a/base/hmac.h +++ b/base/hmac.h @@ -22,7 +22,8 @@ class HMAC { public: // The set of supported hash functions. Extend as required. enum HashAlgorithm { - SHA1 + SHA1, + SHA256, }; explicit HMAC(HashAlgorithm hash_alg); @@ -44,6 +45,8 @@ class HMAC { // returned in |digest|, which has |digest_length| bytes of storage available. bool Sign(const std::string& data, unsigned char* digest, int digest_length); + // TODO(albertb): Add a Verify method. + private: HashAlgorithm hash_alg_; scoped_ptr plat_; -- cgit v1.1