package com.google.crypto.tink.config;

import com.google.crypto.tink.daead.DeterministicAeadConfig;
import com.google.crypto.tink.hybrid.HybridConfig;
import com.google.crypto.tink.prf.PrfConfig;
import com.google.crypto.tink.proto.RegistryConfig;
import com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite;
import com.google.crypto.tink.signature.SignatureConfig;
import com.google.crypto.tink.streamingaead.StreamingAeadConfig;
import java.security.GeneralSecurityException;

@Deprecated
public final class TinkConfig {
    @Deprecated
    public static final RegistryConfig LATEST = ((RegistryConfig) ((RegistryConfig.Builder) ((RegistryConfig.Builder) ((RegistryConfig.Builder) ((RegistryConfig.Builder) RegistryConfig.newBuilder().mergeFrom((GeneratedMessageLite) HybridConfig.LATEST)).mergeFrom((GeneratedMessageLite) SignatureConfig.LATEST)).mergeFrom((GeneratedMessageLite) DeterministicAeadConfig.LATEST)).mergeFrom((GeneratedMessageLite) StreamingAeadConfig.LATEST)).setConfigName("TINK").build());
    @Deprecated
    public static final RegistryConfig TINK_1_0_0 = ((RegistryConfig) ((RegistryConfig.Builder) ((RegistryConfig.Builder) RegistryConfig.newBuilder().mergeFrom((GeneratedMessageLite) HybridConfig.TINK_1_0_0)).mergeFrom((GeneratedMessageLite) SignatureConfig.TINK_1_0_0)).setConfigName("TINK_1_0_0").build());
    @Deprecated
    public static final RegistryConfig TINK_1_1_0 = ((RegistryConfig) ((RegistryConfig.Builder) ((RegistryConfig.Builder) ((RegistryConfig.Builder) ((RegistryConfig.Builder) RegistryConfig.newBuilder().mergeFrom((GeneratedMessageLite) HybridConfig.TINK_1_1_0)).mergeFrom((GeneratedMessageLite) SignatureConfig.TINK_1_1_0)).mergeFrom((GeneratedMessageLite) DeterministicAeadConfig.TINK_1_1_0)).mergeFrom((GeneratedMessageLite) StreamingAeadConfig.TINK_1_1_0)).setConfigName("TINK_1_1_0").build());

    @Deprecated
    public static void init() throws GeneralSecurityException {
        register();
    }

    public static void register() throws GeneralSecurityException {
        DeterministicAeadConfig.register();
        HybridConfig.register();
        PrfConfig.register();
        SignatureConfig.register();
        StreamingAeadConfig.register();
    }
}
