aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_key.h
diff options
context:
space:
mode:
authorioannanedelcu <ioannanedelcu@google.com>2023-06-02 09:16:50 -0700
committerCopybara-Service <copybara-worker@google.com>2023-06-02 09:18:15 -0700
commit42c3d2ad744a3c21dc85f56cdd7ea7446adff9f4 (patch)
tree732bbab3ffc4986ff939bad1a9dd13caa4fab80d /cc/mac/mac_key.h
parent6d6d919563258a8f2bde062bfdcae5d9184db1c9 (diff)
downloadtink-42c3d2ad744a3c21dc85f56cdd7ea7446adff9f4.tar.gz
Get output_prefix by reference to avoid redundant copying.
PiperOrigin-RevId: 537328858
Diffstat (limited to 'cc/mac/mac_key.h')
-rw-r--r--cc/mac/mac_key.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/mac/mac_key.h b/cc/mac/mac_key.h
index 9ffc1498a..d02933cf6 100644
--- a/cc/mac/mac_key.h
+++ b/cc/mac/mac_key.h
@@ -40,7 +40,7 @@ class MacKey : public Key {
// may be a prefix of another). To avoid this, built-in Tink keys use the
// convention that the prefix is either '0x00<big endian key id>' or
// '0x01<big endian key id>'.
- virtual std::string GetOutputPrefix() const = 0;
+ virtual absl::string_view GetOutputPrefix() const = 0;
const MacParameters& GetParameters() const override = 0;