removed use of toUpperCase()
import org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher;
import org.bouncycastle.jcajce.provider.util.AlgorithmProvider;
import org.bouncycastle.jcajce.spec.GOST28147ParameterSpec;
+import org.bouncycastle.util.Strings;
public final class GOST28147
{
@@ -294,7 +295,9 @@ protected static ASN1ObjectIdentifier getSBoxOID(String name)
ASN1ObjectIdentifier oid = null;
if (name!=null)
- oid = (ASN1ObjectIdentifier)nameMappings.get(name.toUpperCase());
+ {
+ oid = (ASN1ObjectIdentifier)nameMappings.get(Strings.toUpperCase(name));
+ }
if (oid == null)
{
