package org.bouncycastle.jcajce.provider.symmetric; import org.bouncycastle.crypto.CipherKeyGenerator; import org.bouncycastle.crypto.engines.XTEAEngine; import org.bouncycastle.jcajce.provider.config.ConfigurableProvider; import org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher; import org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator; import org.bouncycastle.jcajce.provider.symmetric.util.IvAlgorithmParameters; import org.bouncycastle.jcajce.provider.util.AlgorithmProvider; /* loaded from: classes6.dex */ public final class XTEA { /* loaded from: classes6.dex */ public static class Mappings extends AlgorithmProvider { private static final String PREFIX = XTEA.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("$ECB"); configurableProvider.addAlgorithm("Cipher.XTEA", sb.toString()); StringBuilder sb2 = new StringBuilder(); sb2.append(str); sb2.append("$KeyGen"); configurableProvider.addAlgorithm("KeyGenerator.XTEA", sb2.toString()); StringBuilder sb3 = new StringBuilder(); sb3.append(str); sb3.append("$AlgParams"); configurableProvider.addAlgorithm("AlgorithmParameters.XTEA", sb3.toString()); } } /* loaded from: classes6.dex */ public static class AlgParams extends IvAlgorithmParameters { @Override // org.bouncycastle.jcajce.provider.symmetric.util.IvAlgorithmParameters, java.security.AlgorithmParametersSpi public String engineToString() { return "XTEA IV"; } } /* loaded from: classes6.dex */ public static class ECB extends BaseBlockCipher { public ECB() { super(new XTEAEngine()); } } /* loaded from: classes6.dex */ public static class KeyGen extends BaseKeyGenerator { public KeyGen() { super("XTEA", 128, new CipherKeyGenerator()); } } private XTEA() { } }