Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2013-06-11 12:46:34 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2013-06-11 12:46:34 +0400
commitbc5deda7d2e66eb156590184dfe35b0dcc7088c0 (patch)
tree5b1b5cf06bf1e150b908e779787e93ee9940a935 /core/src/main/java/org/bouncycastle/crypto/util
parentb106bc64a6c6361761919967209e397bd4a78600 (diff)
removed some troublesome casts
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/util')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java b/core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java
index 343bbd3c..ab23e11c 100644
--- a/core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java
+++ b/core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java
@@ -160,8 +160,7 @@ public class PublicKeyFactory
}
else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey))
{
- X962Parameters params = new X962Parameters(
- (ASN1Primitive)algId.getParameters());
+ X962Parameters params = X962Parameters.getInstance(algId.getParameters());
X9ECParameters x9;
if (params.isNamedCurve())