aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/hmac_key_manager.h
diff options
context:
space:
mode:
authorBartosz Przydatek <przydatek@google.com>2017-09-20 11:39:39 +0200
committerThai Duong <thaidn@google.com>2017-10-06 13:14:30 -0700
commit19a6b69358f5e90452522b7c0cc53fc24827b267 (patch)
treef24d5ff0c4240dcb2c1c6247fc52abd7edeeefeb /cc/mac/hmac_key_manager.h
parent2da371ee93ec6d18158ed0ddc1a32e4018c0e7e4 (diff)
downloadtink-19a6b69358f5e90452522b7c0cc53fc24827b267.tar.gz
Adding C++ configurations support.
Change-Id: I4b17e65859db914458a32d3359f1a44b5b1b6bde ORIGINAL_AUTHOR=Bartosz Przydatek <przydatek@google.com> GitOrigin-RevId: b67033740fe4d4f49410c397aeab503da6365950
Diffstat (limited to 'cc/mac/hmac_key_manager.h')
-rw-r--r--cc/mac/hmac_key_manager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/mac/hmac_key_manager.h b/cc/mac/hmac_key_manager.h
index 9a6f4077c..e8658c4d0 100644
--- a/cc/mac/hmac_key_manager.h
+++ b/cc/mac/hmac_key_manager.h
@@ -34,6 +34,9 @@ namespace tink {
class HmacKeyManager : public KeyManager<Mac> {
public:
+ static constexpr char kKeyType[] =
+ "type.googleapis.com/google.crypto.tink.HmacKey";
+
HmacKeyManager() : key_type_(kKeyType) {}
// Constructs an instance of HMAC-Mac for the given 'key_data',
@@ -62,9 +65,6 @@ class HmacKeyManager : public KeyManager<Mac> {
private:
static constexpr char kKeyTypePrefix[] = "type.googleapis.com/";
- static constexpr char kKeyType[] =
- "type.googleapis.com/google.crypto.tink.HmacKey";
-
std::string key_type_;
// Constructs an instance of HMAC-Mac for the given 'key'.