diff options
author | tholenst <tholenst@google.com> | 2023-03-08 07:05:13 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-08 07:06:19 -0800 |
commit | 38ec4b9b85f2c7bab3c2ad184a058ac2c5690cbb (patch) | |
tree | abc9de39e1df0c4076da22eec6e2fc4e0f174d42 /cc/mac/mac_key.h | |
parent | 8fc28ff50feb203008ba02b33506dffc729e5202 (diff) | |
download | tink-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.h | 2 |
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; |