diff options
author | Tink Team <tink-dev@google.com> | 2020-03-02 05:09:35 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-03-02 05:10:09 -0800 |
commit | fc9a0567cc62f5ccf78a51f041d397da286a99ad (patch) | |
tree | 4ed82848163d197b13cccf2fe49848af39d397b4 /cc/mac/hmac_key_manager.h | |
parent | c160547d5cc475dbc6d2cde80daca9d0636e1c56 (diff) | |
download | tink-fc9a0567cc62f5ccf78a51f041d397da286a99ad.tar.gz |
Use sanitizing containers in hmac_boringssl
PiperOrigin-RevId: 298328196
Diffstat (limited to 'cc/mac/hmac_key_manager.h')
-rw-r--r-- | cc/mac/hmac_key_manager.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/mac/hmac_key_manager.h b/cc/mac/hmac_key_manager.h index 03ccdb934..7be023e6d 100644 --- a/cc/mac/hmac_key_manager.h +++ b/cc/mac/hmac_key_manager.h @@ -27,7 +27,6 @@ #include "tink/util/enums.h" #include "tink/util/errors.h" #include "tink/util/protobuf_helper.h" -#include "tink/util/secret_data.h" #include "tink/util/status.h" #include "tink/util/statusor.h" #include "proto/hmac.pb.h" @@ -45,8 +44,7 @@ class HmacKeyManager const google::crypto::tink::HmacKey& hmac_key) const override { return subtle::HmacBoringSsl::New( util::Enums::ProtoToSubtle(hmac_key.params().hash()), - hmac_key.params().tag_size(), - util::SecretDataFromStringView(hmac_key.key_value())); + hmac_key.params().tag_size(), hmac_key.key_value()); } }; |