/** * Init SignatureConfig in the Tink library. */ private EcdsaDemo() { try { SignatureConfig.register(); } catch (GeneralSecurityException ex) { log.error("Failed to initialize Tink", ex); } }
/** * Tries to register with the {@link Registry} all instances of {@link * com.google.crypto.tink.Catalogue} needed to handle PublicKeySign and PublicKeyVerify key types * supported in Tink. * * @deprecated use {@link #register} */ @Deprecated public static void init() throws GeneralSecurityException { register(); }
/** * Tries to register with the {@link Registry} all instances of {@link * com.google.crypto.tink.Catalogue} and {@link com.google.crypto.tink.KeyManager} needed to * handle all key types supported in Tink. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { DeterministicAeadConfig.register(); HybridConfig.register(); // includes Aead and Mac SignatureConfig.register(); } }