diff options
author | paulavidas <paulavidas@google.com> | 2019-07-30 02:53:45 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2019-07-30 02:54:12 -0700 |
commit | 536ed89c4529d9f20468ec5af3da514924381f0b (patch) | |
tree | 7577af2151ae628bc72fd1483eb323da7b366dc1 /cc/mac/mac_config.cc | |
parent | 429a076b8ad2bb92c2ceb06c6e507d42e206fb9e (diff) | |
download | tink-536ed89c4529d9f20468ec5af3da514924381f0b.tar.gz |
Update description of Register() method.
Updated description of Register() method because now it also registers
primitive wrapper(s).
PiperOrigin-RevId: 260678130
Diffstat (limited to 'cc/mac/mac_config.cc')
-rw-r--r-- | cc/mac/mac_config.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/mac/mac_config.cc b/cc/mac/mac_config.cc index be39102b7..757072112 100644 --- a/cc/mac/mac_config.cc +++ b/cc/mac/mac_config.cc @@ -56,12 +56,15 @@ const google::crypto::tink::RegistryConfig& MacConfig::Latest() { // static util::Status MacConfig::Register() { + // Register key managers. auto status = Registry::RegisterKeyManager( absl::make_unique<HmacKeyManager>(), true); if (!status.ok()) return status; status = Registry::RegisterKeyManager( absl::make_unique<AesCmacKeyManager>(), true); if (!status.ok()) return status; + + // Register primitive wrapper. return Registry::RegisterPrimitiveWrapper(absl::make_unique<MacWrapper>()); } |