diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 16:18:30 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 16:18:30 +0000 |
commit | 1b47ce2e8d25023f531f4afa8f05b044c4cef111 (patch) | |
tree | 7b4875711b3b1aea46b06ad0d2bb84194d0301c7 /base/hmac.h | |
parent | 61ee6287a14aed0235a40488394fb700e9c5c43c (diff) | |
download | chromium_src-1b47ce2e8d25023f531f4afa8f05b044c4cef111.zip chromium_src-1b47ce2e8d25023f531f4afa8f05b044c4cef111.tar.gz chromium_src-1b47ce2e8d25023f531f4afa8f05b044c4cef111.tar.bz2 |
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
Diffstat (limited to 'base/hmac.h')
-rw-r--r-- | base/hmac.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<HMACPlatformData> plat_; |