package org.bouncycastle.jcajce.provider.digest; import org.bouncycastle.asn1.misc.MiscObjectIdentifiers; import org.bouncycastle.crypto.digests.Blake2bDigest; import org.bouncycastle.jcajce.provider.config.ConfigurableProvider; /* loaded from: classes6.dex */ public class Blake2b { /* loaded from: classes6.dex */ public static class Mappings extends DigestAlgorithmProvider { private static final String PREFIX = Blake2b.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("$Blake2b512"); configurableProvider.addAlgorithm("MessageDigest.BLAKE2B-512", sb.toString()); StringBuilder sb2 = new StringBuilder("Alg.Alias.MessageDigest."); sb2.append(MiscObjectIdentifiers.id_blake2b512); configurableProvider.addAlgorithm(sb2.toString(), "BLAKE2B-512"); StringBuilder sb3 = new StringBuilder(); sb3.append(str); sb3.append("$Blake2b384"); configurableProvider.addAlgorithm("MessageDigest.BLAKE2B-384", sb3.toString()); StringBuilder sb4 = new StringBuilder("Alg.Alias.MessageDigest."); sb4.append(MiscObjectIdentifiers.id_blake2b384); configurableProvider.addAlgorithm(sb4.toString(), "BLAKE2B-384"); StringBuilder sb5 = new StringBuilder(); sb5.append(str); sb5.append("$Blake2b256"); configurableProvider.addAlgorithm("MessageDigest.BLAKE2B-256", sb5.toString()); StringBuilder sb6 = new StringBuilder("Alg.Alias.MessageDigest."); sb6.append(MiscObjectIdentifiers.id_blake2b256); configurableProvider.addAlgorithm(sb6.toString(), "BLAKE2B-256"); StringBuilder sb7 = new StringBuilder(); sb7.append(str); sb7.append("$Blake2b160"); configurableProvider.addAlgorithm("MessageDigest.BLAKE2B-160", sb7.toString()); StringBuilder sb8 = new StringBuilder("Alg.Alias.MessageDigest."); sb8.append(MiscObjectIdentifiers.id_blake2b160); configurableProvider.addAlgorithm(sb8.toString(), "BLAKE2B-160"); } } /* loaded from: classes6.dex */ public static class Blake2b160 extends BCMessageDigest implements Cloneable { @Override // java.security.MessageDigest, java.security.MessageDigestSpi public Object clone() throws CloneNotSupportedException { Blake2b160 blake2b160 = (Blake2b160) super.clone(); blake2b160.digest = new Blake2bDigest((Blake2bDigest) this.digest); return blake2b160; } public Blake2b160() { super(new Blake2bDigest(160)); } } /* loaded from: classes6.dex */ public static class Blake2b256 extends BCMessageDigest implements Cloneable { @Override // java.security.MessageDigest, java.security.MessageDigestSpi public Object clone() throws CloneNotSupportedException { Blake2b256 blake2b256 = (Blake2b256) super.clone(); blake2b256.digest = new Blake2bDigest((Blake2bDigest) this.digest); return blake2b256; } public Blake2b256() { super(new Blake2bDigest(256)); } } /* loaded from: classes6.dex */ public static class Blake2b384 extends BCMessageDigest implements Cloneable { @Override // java.security.MessageDigest, java.security.MessageDigestSpi public Object clone() throws CloneNotSupportedException { Blake2b384 blake2b384 = (Blake2b384) super.clone(); blake2b384.digest = new Blake2bDigest((Blake2bDigest) this.digest); return blake2b384; } public Blake2b384() { super(new Blake2bDigest(384)); } } /* loaded from: classes6.dex */ public static class Blake2b512 extends BCMessageDigest implements Cloneable { @Override // java.security.MessageDigest, java.security.MessageDigestSpi public Object clone() throws CloneNotSupportedException { Blake2b512 blake2b512 = (Blake2b512) super.clone(); blake2b512.digest = new Blake2bDigest((Blake2bDigest) this.digest); return blake2b512; } public Blake2b512() { super(new Blake2bDigest(512)); } } private Blake2b() { } }