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

66 lines
2.3 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.CipherKeyGenerator;
import org.bouncycastle.crypto.digests.RIPEMD320Digest;
import org.bouncycastle.crypto.macs.HMac;
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
import org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator;
import org.bouncycastle.jcajce.provider.symmetric.util.BaseMac;
/* loaded from: classes6.dex */
public class RIPEMD320 {
/* loaded from: classes6.dex */
public static class Mappings extends DigestAlgorithmProvider {
private static final String PREFIX = RIPEMD320.class.getName();
@Override // org.bouncycastle.jcajce.provider.util.AlgorithmProvider
public void configure(ConfigurableProvider configurableProvider) {
StringBuilder sb = new StringBuilder();
String str = PREFIX;
sb.append(str);
sb.append("$Digest");
configurableProvider.addAlgorithm("MessageDigest.RIPEMD320", sb.toString());
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append("$HashMac");
String obj = sb2.toString();
StringBuilder sb3 = new StringBuilder();
sb3.append(str);
sb3.append("$KeyGenerator");
addHMACAlgorithm(configurableProvider, "RIPEMD320", obj, sb3.toString());
}
}
/* 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 RIPEMD320Digest((RIPEMD320Digest) this.digest);
return digest;
}
public Digest() {
super(new RIPEMD320Digest());
}
}
/* loaded from: classes6.dex */
public static class HashMac extends BaseMac {
public HashMac() {
super(new HMac(new RIPEMD320Digest()));
}
}
/* loaded from: classes6.dex */
public static class KeyGenerator extends BaseKeyGenerator {
public KeyGenerator() {
super("HMACRIPEMD320", 320, new CipherKeyGenerator());
}
}
private RIPEMD320() {
}
}