summary refs log tree commit diff
path: root/crypto/src/math/ec/rfc7748/X25519.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-07-05 16:01:23 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-07-05 16:01:23 +0700
commitdee05948a56eb6edd6563089367255ee9676ecd2 (patch)
tree924a1f9964d0a1b4ff842074f4d4d976b66cd566 /crypto/src/math/ec/rfc7748/X25519.cs
parentMove m_resumedSession to SecurityParameters (diff)
downloadBouncyCastle.NET-ed25519-dee05948a56eb6edd6563089367255ee9676ecd2.tar.xz
Use static classes and 'using' aliases
Diffstat (limited to 'crypto/src/math/ec/rfc7748/X25519.cs')
-rw-r--r--crypto/src/math/ec/rfc7748/X25519.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/ec/rfc7748/X25519.cs b/crypto/src/math/ec/rfc7748/X25519.cs
index bf845d2f5..217ef8785 100644
--- a/crypto/src/math/ec/rfc7748/X25519.cs
+++ b/crypto/src/math/ec/rfc7748/X25519.cs
@@ -7,13 +7,13 @@ using Org.BouncyCastle.Utilities;
 
 namespace Org.BouncyCastle.Math.EC.Rfc7748
 {
-    public abstract class X25519
+    using F = X25519Field;
+
+    public static class X25519
     {
         public const int PointSize = 32;
         public const int ScalarSize = 32;
 
-        private class F : X25519Field {};
-
         private const int C_A = 486662;
         private const int C_A24 = (C_A + 2)/4;