40 lines
3.0 KiB
Java
40 lines
3.0 KiB
Java
package org.bouncycastle.jcajce.provider.asymmetric;
|
|
|
|
import org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers;
|
|
import org.bouncycastle.jcajce.provider.asymmetric.gost.KeyFactorySpi;
|
|
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
|
|
import org.bouncycastle.jcajce.provider.util.AsymmetricAlgorithmProvider;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class GOST {
|
|
private static final String PREFIX = "org.bouncycastle.jcajce.provider.asymmetric.gost.";
|
|
|
|
/* loaded from: classes6.dex */
|
|
public static class Mappings extends AsymmetricAlgorithmProvider {
|
|
@Override // org.bouncycastle.jcajce.provider.util.AlgorithmProvider
|
|
public void configure(ConfigurableProvider configurableProvider) {
|
|
configurableProvider.addAlgorithm("KeyPairGenerator.GOST3410", "org.bouncycastle.jcajce.provider.asymmetric.gost.KeyPairGeneratorSpi");
|
|
configurableProvider.addAlgorithm("Alg.Alias.KeyPairGenerator.GOST-3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.KeyPairGenerator.GOST-3410-94", "GOST3410");
|
|
configurableProvider.addAlgorithm("KeyFactory.GOST3410", "org.bouncycastle.jcajce.provider.asymmetric.gost.KeyFactorySpi");
|
|
configurableProvider.addAlgorithm("Alg.Alias.KeyFactory.GOST-3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.KeyFactory.GOST-3410-94", "GOST3410");
|
|
configurableProvider.addAlgorithm("AlgorithmParameters.GOST3410", "org.bouncycastle.jcajce.provider.asymmetric.gost.AlgorithmParametersSpi");
|
|
configurableProvider.addAlgorithm("AlgorithmParameterGenerator.GOST3410", "org.bouncycastle.jcajce.provider.asymmetric.gost.AlgorithmParameterGeneratorSpi");
|
|
registerOid(configurableProvider, CryptoProObjectIdentifiers.gostR3410_94, "GOST3410", new KeyFactorySpi());
|
|
registerOidAlgorithmParameters(configurableProvider, CryptoProObjectIdentifiers.gostR3410_94, "GOST3410");
|
|
configurableProvider.addAlgorithm("Signature.GOST3410", "org.bouncycastle.jcajce.provider.asymmetric.gost.SignatureSpi");
|
|
configurableProvider.addAlgorithm("Alg.Alias.Signature.GOST-3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.Signature.GOST-3410-94", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.Signature.GOST3411withGOST3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.Signature.GOST3411WITHGOST3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.Signature.GOST3411WithGOST3410", "GOST3410");
|
|
StringBuilder sb = new StringBuilder("Alg.Alias.Signature.");
|
|
sb.append(CryptoProObjectIdentifiers.gostR3411_94_with_gostR3410_94);
|
|
configurableProvider.addAlgorithm(sb.toString(), "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.AlgorithmParameterGenerator.GOST-3410", "GOST3410");
|
|
configurableProvider.addAlgorithm("Alg.Alias.AlgorithmParameters.GOST-3410", "GOST3410");
|
|
}
|
|
}
|
|
}
|