pub fn init() {
    INIT.call_once(|| {
        // ECDSA
        register_key_manager(std::sync::Arc::new(EcdsaSignerKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        register_key_manager(std::sync::Arc::new(EcdsaVerifierKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init

        // Ed25519
        register_key_manager(std::sync::Arc::new(Ed25519SignerKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        register_key_manager(std::sync::Arc::new(Ed25519VerifierKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init

        tink::registry::register_template_generator("ECDSA_P256", ecdsa_p256_key_template);
        tink::registry::register_template_generator(
            "ECDSA_P256_IEEE_P1363",
            ecdsa_p256_key_p1363_template,
        );
        tink::registry::register_template_generator("ED25519", ed25519_key_template);
        tink::registry::register_template_generator(
            "ED25519WithRawOutput",
            ed25519_key_without_prefix_template,
        );
    });
}
/// Initialize the `tink-signature` crate, registering its primitives so they are available via
/// Tink.
Initialize the `tink-signature` crate, registering its primitives so they are available via
Tink.
Initialize the ` tink - signature ` crate registering its primitives so they are available via Tink .
pub fn init() {
    INIT.call_once(|| {
        // ECDSA
        register_key_manager(std::sync::Arc::new(EcdsaSignerKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        register_key_manager(std::sync::Arc::new(EcdsaVerifierKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        // Ed25519
        register_key_manager(std::sync::Arc::new(Ed25519SignerKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        register_key_manager(std::sync::Arc::new(Ed25519VerifierKeyManager::default()))
            .expect("tink_signature::init() failed"); // safe: init
        tink::registry::register_template_generator("ECDSA_P256", ecdsa_p256_key_template);
        tink::registry::register_template_generator(
            "ECDSA_P256_IEEE_P1363",
            ecdsa_p256_key_p1363_template,
        );
        tink::registry::register_template_generator("ED25519", ed25519_key_template);
        tink::registry::register_template_generator(
            "ED25519WithRawOutput",
            ed25519_key_without_prefix_template,
        );
    });
}
pub fn init ( ) { INIT . call_once ( | | { // ECDSA register_key_manager ( std :: sync :: Arc :: new ( EcdsaSignerKeyManager :: default ( ) ) ) . expect ( " " ) ; // safe: init register_key_manager ( std :: sync :: Arc :: new ( EcdsaVerifierKeyManager :: default ( ) ) ) . expect ( " " ) ; // safe: init // Ed25519 register_key_manager ( std :: sync :: Arc :: new ( Ed25519SignerKeyManager :: default ( ) ) ) . expect ( " " ) ; // safe: init register_key_manager ( std :: sync :: Arc :: new ( Ed25519VerifierKeyManager :: default ( ) ) ) . expect ( " " ) ; // safe: init tink :: registry :: register_template_generator ( " " , ecdsa_p256_key_template ) ; tink :: registry :: register_template_generator ( " " , ecdsa_p256_key_p1363_template , ) ; tink :: registry :: register_template_generator ( " " , ed25519_key_template ) ; tink :: registry :: register_template_generator ( " " , ed25519_key_without_prefix_template , ) ; } ) ; }
Initialize the `tink-signature` crate, registering its primitives so they are available via
Tink.
Initialize the ` tink - signature ` crate registering its primitives so they are available via Tink .