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:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-03 10:34:57 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-03 10:34:57 +0400
commit9f93f7bf294d6dcd4711fa9ab3bd7b5743049e99 (patch)
treefa840b2fa479d482c77ec717fc7a86b234fcdf8a
parent35ffd7ad014457d90a5c2de5fada233a822513c0 (diff)
Support NIST alias "P-256" for secp256r1
-rw-r--r--core/src/main/java/org/bouncycastle/math/ec/custom/CustomNamedCurves.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/math/ec/custom/CustomNamedCurves.java b/core/src/main/java/org/bouncycastle/math/ec/custom/CustomNamedCurves.java
index 40dd7a29..4a788128 100644
--- a/core/src/main/java/org/bouncycastle/math/ec/custom/CustomNamedCurves.java
+++ b/core/src/main/java/org/bouncycastle/math/ec/custom/CustomNamedCurves.java
@@ -68,6 +68,8 @@ public class CustomNamedCurves
{
defineCurve("secp256k1", SECObjectIdentifiers.secp256k1, secp256k1);
defineCurve("secp256r1", SECObjectIdentifiers.secp256r1, secp256r1);
+
+ objIds.put(Strings.toLowerCase("P-256"), SECObjectIdentifiers.secp256r1);
}
public static X9ECParameters getByName(String name)