summaryrefslogtreecommitdiffstats
path: root/base/hmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/hmac.h')
-rw-r--r--base/hmac.h5
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_;