aboutsummaryrefslogtreecommitdiff
path: root/cc/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/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/key_manager.h')
-rw-r--r--cc/key_manager.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/key_manager.h b/cc/key_manager.h
index 8ea34b0d4..310239382 100644
--- a/cc/key_manager.h
+++ b/cc/key_manager.h
@@ -27,7 +27,6 @@
#include "google/protobuf/stubs/stringpiece.h"
#include "proto/tink.pb.h"
-namespace cloud {
namespace crypto {
namespace tink {
@@ -45,7 +44,7 @@ class KeyManager {
public:
// Constructs an instance of P for the given 'key_data'.
virtual util::StatusOr<std::unique_ptr<P>>
- GetPrimitive(const google::cloud::crypto::tink::KeyData& key_data) const = 0;
+ GetPrimitive(const google::crypto::tink::KeyData& key_data) const = 0;
// Constructs an instance of P for the given 'key'.
virtual util::StatusOr<std::unique_ptr<P>>
@@ -53,7 +52,7 @@ class KeyManager {
// Generates a new random key, based on the specified 'key_template'.
virtual util::StatusOr<std::unique_ptr<google::protobuf::Message>> NewKey(
- const google::cloud::crypto::tink::KeyTemplate& key_template) const = 0;
+ const google::crypto::tink::KeyTemplate& key_template) const = 0;
// Returns the type_url identifying the key type handled by this manager.
virtual const std::string& get_key_type() const = 0;
@@ -70,6 +69,5 @@ class KeyManager {
} // namespace tink
} // namespace crypto
-} // namespace cloud
#endif // TINK_KEY_MANAGER_H_