diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java')
-rw-r--r-- | src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java b/src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java index 10480cd4..9a20f22f 100644 --- a/src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java +++ b/src/main/java/org/bouncycastle/crypto/tls/NamedCurve.java @@ -2,14 +2,15 @@ package org.bouncycastle.crypto.tls; /**
* RFC 4492 5.1.1
- *
+ * <p/>
* The named curves defined here are those specified in SEC 2 [13]. Note that many of these curves
* are also recommended in ANSI X9.62 [7] and FIPS 186-2 [11]. Values 0xFE00 through 0xFEFF are
* reserved for private use. Values 0xFF01 and 0xFF02 indicate that the client supports arbitrary
* prime and characteristic-2 curves, respectively (the curve parameters must be encoded explicitly
* in ECParameters).
*/
-public class NamedCurve {
+public class NamedCurve
+{
public static final int sect163k1 = 1;
public static final int sect163r1 = 2;
public static final int sect163r2 = 3;
@@ -43,8 +44,10 @@ public class NamedCurve { public static final int arbitrary_explicit_prime_curves = 0xFF01;
public static final int arbitrary_explicit_char2_curves = 0xFF02;
- public static boolean refersToASpecificNamedCurve(int namedCurve) {
- switch (namedCurve) {
+ public static boolean refersToASpecificNamedCurve(int namedCurve)
+ {
+ switch (namedCurve)
+ {
case arbitrary_explicit_prime_curves:
case arbitrary_explicit_char2_curves:
return false;
|