aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/hmac_key_manager.h
diff options
context:
space:
mode:
authorThai Duong <thaidn@google.com>2017-05-25 21:41:05 -0700
committerThai Duong <thaidn@google.com>2017-05-26 10:03:57 -0700
commit2675d26052f185611c4d9d6fd6535db67bdc4763 (patch)
tree98ed1266a67e821b6d68f4911f47a63ac18729bc /cc/mac/hmac_key_manager.h
parent52402180aacd24e3d3ed994f8acf502cc39fa01f (diff)
downloadtink-2675d26052f185611c4d9d6fd6535db67bdc4763.tar.gz
Move C++ to google::crypto::tink.
Change-Id: I115b64a1d4a3e4eadb330ed707c9206efd42ae31 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: 58c9c7744df883bbbe906d3928027607208a7d1a
Diffstat (limited to 'cc/mac/hmac_key_manager.h')
-rw-r--r--cc/mac/hmac_key_manager.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/cc/mac/hmac_key_manager.h b/cc/mac/hmac_key_manager.h
index 59e09b05b..a923ff6c3 100644
--- a/cc/mac/hmac_key_manager.h
+++ b/cc/mac/hmac_key_manager.h
@@ -29,7 +29,6 @@
#include "proto/hmac.pb.h"
#include "proto/tink.pb.h"
-namespace cloud {
namespace crypto {
namespace tink {
@@ -39,7 +38,7 @@ class HmacKeyManager : public KeyManager<Mac> {
// Constructs an instance of HMAC-Mac for the given 'key'.
util::StatusOr<std::unique_ptr<Mac>> GetPrimitive(
- const google::cloud::crypto::tink::KeyData& key_data) const override;
+ const google::crypto::tink::KeyData& key_data) const override;
// Constructs an instance of HMAC-Mac for the given 'key'.
util::StatusOr<std::unique_ptr<Mac>>
@@ -47,7 +46,7 @@ class HmacKeyManager : public KeyManager<Mac> {
// Generates a new random HMAC key, based on the specified 'key_template'.
util::StatusOr<std::unique_ptr<google::protobuf::Message>> NewKey(
- const google::cloud::crypto::tink::KeyTemplate& key_template)
+ const google::crypto::tink::KeyTemplate& key_template)
const override;
// Returns the type_url identifying the key type handled by this manager.
@@ -61,24 +60,23 @@ class HmacKeyManager : public KeyManager<Mac> {
private:
static constexpr char kKeyTypePrefix[] = "type.googleapis.com/";
static constexpr char kKeyType[] =
- "type.googleapis.com/google.cloud.crypto.tink.HmacKey";
+ "type.googleapis.com/google.crypto.tink.HmacKey";
std::string key_type_;
// Constructs an instance of HMAC-Mac for the given 'key'.
util::StatusOr<std::unique_ptr<Mac>>
- GetPrimitiveImpl(const google::cloud::crypto::tink::HmacKey& key) const;
+ GetPrimitiveImpl(const google::crypto::tink::HmacKey& key) const;
util::Status Validate(
- const google::cloud::crypto::tink::HmacParams& params) const;
+ const google::crypto::tink::HmacParams& params) const;
util::Status Validate(
- const google::cloud::crypto::tink::HmacKey& key) const;
+ const google::crypto::tink::HmacKey& key) const;
util::Status Validate(
- const google::cloud::crypto::tink::HmacKeyFormat& key_format) const;
+ const google::crypto::tink::HmacKeyFormat& key_format) const;
};
} // namespace tink
} // namespace crypto
-} // namespace cloud
#endif // TINK_MAC_HMAC_KEY_MANAGER_H_