diff options
author | wconner <wconner@google.com> | 2022-07-19 10:12:26 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-07-19 10:13:43 -0700 |
commit | d894e705410bed4c5bc70e3d09c68dc3106422c5 (patch) | |
tree | 542ba99d0c518f118e3df87b43e0b6dae8fc383f /cc/mac/mac_config.cc | |
parent | 7c1fcfe83ff7e9e3f316aa2b28b87026a6f94d33 (diff) | |
download | tink-d894e705410bed4c5bc70e3d09c68dc3106422c5.tar.gz |
Register ChunkedMac wrapper during Mac registration.
PiperOrigin-RevId: 461912594
Diffstat (limited to 'cc/mac/mac_config.cc')
-rw-r--r-- | cc/mac/mac_config.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/mac/mac_config.cc b/cc/mac/mac_config.cc index ca0d24076..7f7994544 100644 --- a/cc/mac/mac_config.cc +++ b/cc/mac/mac_config.cc @@ -17,6 +17,7 @@ #include "tink/mac/mac_config.h" #include "absl/memory/memory.h" +#include "tink/chunkedmac/internal/chunked_mac_wrapper.h" #include "tink/config/config_util.h" #include "tink/config/tink_fips.h" #include "tink/mac/aes_cmac_key_manager.h" @@ -39,11 +40,15 @@ const RegistryConfig& MacConfig::Latest() { // static util::Status MacConfig::Register() { - // Register primitive wrapper. + // Register primitive wrappers. auto status = Registry::RegisterPrimitiveWrapper(absl::make_unique<MacWrapper>()); if (!status.ok()) return status; + status = Registry::RegisterPrimitiveWrapper( + absl::make_unique<internal::ChunkedMacWrapper>()); + if (!status.ok()) return status; + // Register key managers which utilize the FIPS validated BoringCrypto // implementations. status = Registry::RegisterKeyTypeManager(absl::make_unique<HmacKeyManager>(), |