27 lines
1.6 KiB
Java
27 lines
1.6 KiB
Java
|
package org.bouncycastle.jcajce.provider.digest;
|
||
|
|
||
|
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
|
||
|
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
|
||
|
import org.bouncycastle.jcajce.provider.util.AlgorithmProvider;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
abstract class DigestAlgorithmProvider extends AlgorithmProvider {
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public void addHMACAlias(ConfigurableProvider configurableProvider, String str, ASN1ObjectIdentifier aSN1ObjectIdentifier) {
|
||
|
String concat = "HMAC".concat(String.valueOf(str));
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.Mac.".concat(String.valueOf(aSN1ObjectIdentifier)), concat);
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.KeyGenerator.".concat(String.valueOf(aSN1ObjectIdentifier)), concat);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public void addHMACAlgorithm(ConfigurableProvider configurableProvider, String str, String str2, String str3) {
|
||
|
String concat = "HMAC".concat(String.valueOf(str));
|
||
|
configurableProvider.addAlgorithm("Mac.".concat(String.valueOf(concat)), str2);
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.Mac.HMAC-".concat(String.valueOf(str)), concat);
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.Mac.HMAC/".concat(String.valueOf(str)), concat);
|
||
|
configurableProvider.addAlgorithm("KeyGenerator.".concat(String.valueOf(concat)), str3);
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC-".concat(String.valueOf(str)), concat);
|
||
|
configurableProvider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC/".concat(String.valueOf(str)), concat);
|
||
|
}
|
||
|
}
|