aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_key.h
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2023-03-08 07:05:13 -0800
committerCopybara-Service <copybara-worker@google.com>2023-03-08 07:06:19 -0800
commit38ec4b9b85f2c7bab3c2ad184a058ac2c5690cbb (patch)
treeabc9de39e1df0c4076da22eec6e2fc4e0f174d42 /cc/mac/mac_key.h
parent8fc28ff50feb203008ba02b33506dffc729e5202 (diff)
downloadtink-38ec4b9b85f2c7bab3c2ad184a058ac2c5690cbb.tar.gz
Remove the StatusOr<> part of the method "GetOutputPrefix" in the mac key.
There is no reason this should be there: if this returns an error, the key shouldn't have been created. PiperOrigin-RevId: 515027174
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 5e14e5fd7..9ffc1498a 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 util::StatusOr<std::string> GetOutputPrefix() const = 0;
+ virtual std::string GetOutputPrefix() const = 0;
const MacParameters& GetParameters() const override = 0;