diff options
author | David Hook <dgh@cryptoworkshop.com> | 2013-06-11 12:46:34 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2013-06-11 12:46:34 +0400 |
commit | bc5deda7d2e66eb156590184dfe35b0dcc7088c0 (patch) | |
tree | 5b1b5cf06bf1e150b908e779787e93ee9940a935 /core/src/main/java/org/bouncycastle/crypto | |
parent | b106bc64a6c6361761919967209e397bd4a78600 (diff) |
removed some troublesome casts
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/util/PublicKeyFactory.java | 3 |
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()) |