diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/java/org/uic/barcode/test/utils/TestUtils.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/java/org/uic/barcode/test/utils/TestUtils.java b/src/test/java/org/uic/barcode/test/utils/TestUtils.java index 20a21c4..9791b02 100644 --- a/src/test/java/org/uic/barcode/test/utils/TestUtils.java +++ b/src/test/java/org/uic/barcode/test/utils/TestUtils.java @@ -12,7 +12,6 @@ import java.util.Date; import org.bouncycastle.jce.ECNamedCurveTable;
import org.bouncycastle.jce.spec.ECParameterSpec;
-import org.uic.barcode.utils.AlgorithmNameResolver;
public class TestUtils {
@@ -61,9 +60,7 @@ public class TestUtils { public static KeyPair generateECKeys(String keyAlgorithmOid, String curve) throws Exception{
- String keyAlgorithmName = AlgorithmNameResolver.getName(AlgorithmNameResolver.TYPE_KEY_GENERATOR_ALG, keyAlgorithmOid, "BC");
-
- keyAlgorithmName = "ECDSA";
+ String keyAlgorithmName = "ECDSA";
ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec(curve);
KeyPairGenerator g = KeyPairGenerator.getInstance(keyAlgorithmName, "BC");
g.initialize(ecSpec, new SecureRandom());
|