#![deny(broken_intra_doc_links)]
use std::sync::Once;
mod aes_cmac_key_manager;
pub use aes_cmac_key_manager::*;
mod factory;
pub use factory::*;
mod hmac_key_manager;
pub use hmac_key_manager::*;
mod key_templates;
pub use key_templates::*;
pub mod subtle;
pub const UPSTREAM_VERSION: &str = "1.6.0";
static INIT: Once = Once::new();
pub fn init() {
INIT.call_once(|| {
tink_core::registry::register_key_manager(std::sync::Arc::new(HmacKeyManager))
.expect("tink_mac::init() failed"); tink_core::registry::register_key_manager(std::sync::Arc::new(AesCmacKeyManager))
.expect("tink_mac::init() failed");
tink_core::registry::register_template_generator(
"HMAC_SHA256_128BITTAG",
hmac_sha256_tag128_key_template,
);
tink_core::registry::register_template_generator(
"HMAC_SHA256_256BITTAG",
hmac_sha256_tag256_key_template,
);
tink_core::registry::register_template_generator(
"HMAC_SHA512_256BITTAG",
hmac_sha512_tag256_key_template,
);
tink_core::registry::register_template_generator(
"HMAC_SHA512_512BITTAG",
hmac_sha512_tag512_key_template,
);
tink_core::registry::register_template_generator("AES_CMAC", aes_cmac_tag128_key_template);
});
}