diff options
author | wiktorg <wiktorg@google.com> | 2020-03-03 06:22:09 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-03-03 06:22:41 -0800 |
commit | 04a373f004408cce0c7c7109d4835ad7f1c5bef4 (patch) | |
tree | 1f5c36b6931fa3d6729a810d6ae3f122da2bdfc5 /cc/mac/hmac_key_manager.h | |
parent | 71cdf56bcbaecfb861c69c92e4b292d979300ca7 (diff) | |
download | tink-04a373f004408cce0c7c7109d4835ad7f1c5bef4.tar.gz |
Use sanitizing containers in hmac_boringssl
PiperOrigin-RevId: 298591191
Diffstat (limited to 'cc/mac/hmac_key_manager.h')
-rw-r--r-- | cc/mac/hmac_key_manager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/mac/hmac_key_manager.h b/cc/mac/hmac_key_manager.h index 7be023e6d..03ccdb934 100644 --- a/cc/mac/hmac_key_manager.h +++ b/cc/mac/hmac_key_manager.h @@ -27,6 +27,7 @@ #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" @@ -44,7 +45,8 @@ 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(), hmac_key.key_value()); + hmac_key.params().tag_size(), + util::SecretDataFromStringView(hmac_key.key_value())); } }; |