24 lines
1.3 KiB
Java
24 lines
1.3 KiB
Java
package org.bouncycastle.pqc.jcajce.provider;
|
|
|
|
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
|
|
import org.bouncycastle.jcajce.provider.util.AsymmetricAlgorithmProvider;
|
|
import org.bouncycastle.pqc.asn1.PQCObjectIdentifiers;
|
|
import org.bouncycastle.pqc.jcajce.provider.newhope.NHKeyFactorySpi;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class NH {
|
|
private static final String PREFIX = "org.bouncycastle.pqc.jcajce.provider.newhope.";
|
|
|
|
/* loaded from: classes6.dex */
|
|
public static class Mappings extends AsymmetricAlgorithmProvider {
|
|
@Override // org.bouncycastle.jcajce.provider.util.AlgorithmProvider
|
|
public void configure(ConfigurableProvider configurableProvider) {
|
|
configurableProvider.addAlgorithm("KeyFactory.NH", "org.bouncycastle.pqc.jcajce.provider.newhope.NHKeyFactorySpi");
|
|
configurableProvider.addAlgorithm("KeyPairGenerator.NH", "org.bouncycastle.pqc.jcajce.provider.newhope.NHKeyPairGeneratorSpi");
|
|
configurableProvider.addAlgorithm("KeyAgreement.NH", "org.bouncycastle.pqc.jcajce.provider.newhope.KeyAgreementSpi");
|
|
registerOid(configurableProvider, PQCObjectIdentifiers.newHope, "NH", new NHKeyFactorySpi());
|
|
registerOidAlgorithmParameters(configurableProvider, PQCObjectIdentifiers.newHope, "NH");
|
|
}
|
|
}
|
|
}
|