what-the-bank/sources/org/bouncycastle/jcajce/provider/digest/SM3.java

41 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce.provider.digest;
import org.bouncycastle.crypto.digests.SM3Digest;
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
/* loaded from: classes6.dex */
public class SM3 {
/* loaded from: classes6.dex */
public static class Mappings extends DigestAlgorithmProvider {
private static final String PREFIX = SM3.class.getName();
@Override // org.bouncycastle.jcajce.provider.util.AlgorithmProvider
public void configure(ConfigurableProvider configurableProvider) {
StringBuilder sb = new StringBuilder();
sb.append(PREFIX);
sb.append("$Digest");
configurableProvider.addAlgorithm("MessageDigest.SM3", sb.toString());
configurableProvider.addAlgorithm("Alg.Alias.MessageDigest.SM3", "SM3");
configurableProvider.addAlgorithm("Alg.Alias.MessageDigest.1.2.156.197.1.401", "SM3");
}
}
/* loaded from: classes6.dex */
public static class Digest extends BCMessageDigest implements Cloneable {
@Override // java.security.MessageDigest, java.security.MessageDigestSpi
public Object clone() throws CloneNotSupportedException {
Digest digest = (Digest) super.clone();
digest.digest = new SM3Digest((SM3Digest) this.digest);
return digest;
}
public Digest() {
super(new SM3Digest());
}
}
private SM3() {
}
}