summary refs log tree commit diff
path: root/crypto/src/tls/NamedGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/NamedGroup.cs')
-rw-r--r--crypto/src/tls/NamedGroup.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/tls/NamedGroup.cs b/crypto/src/tls/NamedGroup.cs
index 0035ef9f3..15671a837 100644
--- a/crypto/src/tls/NamedGroup.cs
+++ b/crypto/src/tls/NamedGroup.cs
@@ -358,6 +358,8 @@ namespace Org.BouncyCastle.Tls
                 || (namedGroup == arbitrary_explicit_char2_curves);
         }
 
+        public static bool IsFiniteField(int namedGroup) => (namedGroup & 0xFFFFFF00) == 0x00000100;
+
         public static bool IsPrimeCurve(int namedGroup)
         {
             return (namedGroup >= secp160k1 && namedGroup <= curveSM2)