diff options
author | ioannanedelcu <ioannanedelcu@google.com> | 2023-06-02 09:16:50 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-02 09:18:15 -0700 |
commit | 42c3d2ad744a3c21dc85f56cdd7ea7446adff9f4 (patch) | |
tree | 732bbab3ffc4986ff939bad1a9dd13caa4fab80d /cc/mac/mac_key.h | |
parent | 6d6d919563258a8f2bde062bfdcae5d9184db1c9 (diff) | |
download | tink-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.h | 2 |
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; |