diff options
author | Thai Duong <thaidn@google.com> | 2017-08-29 16:40:37 -0700 |
---|---|---|
committer | Thai Duong <thaidn@google.com> | 2017-09-01 15:21:06 -0700 |
commit | 14f57e6f0605f31f5f8a0c31456ab5d90f4f91d4 (patch) | |
tree | b887279ee0c25f3cd27882a2f747787cab8b5741 /cc/mac/hmac_key_manager.h | |
parent | fa20557afb277cac4bcde628f866800d55f0e47a (diff) | |
download | tink-14f57e6f0605f31f5f8a0c31456ab5d90f4f91d4.tar.gz |
Move util to crypto::tink::util.
Change-Id: I2e628298c31e26da0067196634b5dc4d3bd5ed84
ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com>
GitOrigin-RevId: 9b88cb7f7aad68ff16094ab7ff6a3a1620f58cd5
Diffstat (limited to 'cc/mac/hmac_key_manager.h')
-rw-r--r-- | cc/mac/hmac_key_manager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cc/mac/hmac_key_manager.h b/cc/mac/hmac_key_manager.h index 86033b909..2694d1464 100644 --- a/cc/mac/hmac_key_manager.h +++ b/cc/mac/hmac_key_manager.h @@ -38,17 +38,17 @@ class HmacKeyManager : public KeyManager<Mac> { // Constructs an instance of HMAC-Mac for the given 'key_data', // which must contain HmacKey-proto. - util::StatusOr<std::unique_ptr<Mac>> GetPrimitive( + crypto::tink::util::StatusOr<std::unique_ptr<Mac>> GetPrimitive( const google::crypto::tink::KeyData& key_data) const override; // Constructs an instance of HMAC-Mac for the given 'key', // which must be HmacKey-proto. - util::StatusOr<std::unique_ptr<Mac>> + crypto::tink::util::StatusOr<std::unique_ptr<Mac>> GetPrimitive(const google::protobuf::Message& key) const override; // Generates a new random HmacKey, based on the specified 'key_template', // which must contain HmacKeyFormat-proto. - util::StatusOr<std::unique_ptr<google::protobuf::Message>> NewKey( + crypto::tink::util::StatusOr<std::unique_ptr<google::protobuf::Message>> NewKey( const google::crypto::tink::KeyTemplate& key_template) const override; @@ -68,14 +68,14 @@ class HmacKeyManager : public KeyManager<Mac> { std::string key_type_; // Constructs an instance of HMAC-Mac for the given 'key'. - util::StatusOr<std::unique_ptr<Mac>> + crypto::tink::util::StatusOr<std::unique_ptr<Mac>> GetPrimitiveImpl(const google::crypto::tink::HmacKey& key) const; - util::Status Validate( + crypto::tink::util::Status Validate( const google::crypto::tink::HmacParams& params) const; - util::Status Validate( + crypto::tink::util::Status Validate( const google::crypto::tink::HmacKey& key) const; - util::Status Validate( + crypto::tink::util::Status Validate( const google::crypto::tink::HmacKeyFormat& key_format) const; }; |