aboutsummaryrefslogtreecommitdiff
path: root/cc/mac.h
diff options
context:
space:
mode:
authorThai Duong <thaidn@google.com>2017-10-25 10:59:07 -0700
committerThai Duong <thaidn@google.com>2017-10-25 23:46:19 -0700
commit82bdfb4ca462e2cdf64f4748bc99642d24946c33 (patch)
tree2d4555c1dec5d328c32ab838e4414495d49af327 /cc/mac.h
parent3fd5d31d766412a4191839e08d0ee712dfe408f7 (diff)
downloadtink-82bdfb4ca462e2cdf64f4748bc99642d24946c33.tar.gz
Replacing google::protobuf::StringPiece with absl::string_view.
Change-Id: I0e0d9245e50a5d98b6e261f07c886d72cf97afd5 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: cc4c8808cdf631449679a26f94e289008d0d5b71
Diffstat (limited to 'cc/mac.h')
-rw-r--r--cc/mac.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/mac.h b/cc/mac.h
index 011ff6e99..fb2f4e2e4 100644
--- a/cc/mac.h
+++ b/cc/mac.h
@@ -17,9 +17,9 @@
#ifndef TINK_MAC_H_
#define TINK_MAC_H_
+#include "absl/strings/string_view.h"
#include "cc/util/status.h"
#include "cc/util/statusor.h"
-#include "google/protobuf/stubs/stringpiece.h"
namespace crypto {
namespace tink {
@@ -32,13 +32,13 @@ class Mac {
public:
// Computes and returns the message authentication code (MAC) for 'data'.
virtual crypto::tink::util::StatusOr<std::string> ComputeMac(
- google::protobuf::StringPiece data) const = 0;
+ absl::string_view data) const = 0;
// Verifies if 'mac' is a correct authentication code (MAC) for 'data'.
// Returns Status::OK if 'mac' is correct, and a non-OK-Status otherwise.
virtual crypto::tink::util::Status VerifyMac(
- google::protobuf::StringPiece mac_value,
- google::protobuf::StringPiece data) const = 0;
+ absl::string_view mac_value,
+ absl::string_view data) const = 0;
virtual ~Mac() {}