/** * 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. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { Registry.addCatalogue(PUBLIC_KEY_SIGN_CATALOGUE_NAME, new PublicKeySignCatalogue()); Registry.addCatalogue(PUBLIC_KEY_VERIFY_CATALOGUE_NAME, new PublicKeyVerifyCatalogue()); Config.register(LATEST); } }
/** * Tries to register with the {@link Registry} all instances of {@link * com.google.crypto.tink.Catalogue} needed to handle StreamingAead key types supported in Tink. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { Registry.addCatalogue(CATALOGUE_NAME, new StreamingAeadCatalogue()); Config.register(LATEST); } }
/** * 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 Mac key types supported in Tink. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { Registry.addCatalogue(CATALOGUE_NAME, new MacCatalogue()); Config.register(LATEST); }
/** * Tries to register with the {@link Registry} all instances of {@link * com.google.crypto.tink.Catalogue} needed to handle DeterministicAead key types supported in * Tink. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { Registry.addCatalogue(CATALOGUE_NAME, new DeterministicAeadCatalogue()); Config.register(LATEST); } }
/** * Tries to register with the {@link Registry} all instances of {@link * com.google.crypto.tink.Catalogue} needed to handle HybridDecrypt and HybridEncrypt key types * supported in Tink. * * <p>Because HybridDecrypt and HybridEncrypt key types depend on {@link * com.google.crypto.tink.Aead} and {@link com.google.crypto.tink.Mac} key types, this method also * registers all Aead and Mac catalogues. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { // The order of these calls matters. AeadConfig.register(); // includes Mac Registry.addCatalogue(HYBRID_ENCRYPT_CATALOGUE_NAME, new HybridEncryptCatalogue()); Registry.addCatalogue(HYBRID_DECRYPT_CATALOGUE_NAME, new HybridDecryptCatalogue()); Config.register(LATEST); } }
/** * 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 Aead key types supported in Tink. * * <p>Because Aead key types depend on {@link com.google.crypto.tink.Mac} key types, this method * also registers all Mac catalogues and key managers. * * @since 1.2.0 */ public static void register() throws GeneralSecurityException { // The order of these calls matters. MacConfig.register(); Registry.addCatalogue(CATALOGUE_NAME, new AeadCatalogue()); Config.register(LATEST); }