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>2018-09-14 16:10:44 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-09-14 16:10:44 +0700
commit56d58cba091c7e03253b1b43b81e21d69c82c143 (patch)
tree23a88778b9ed274cd37f72edcb307b780c011049 /crypto/src/math/ec/rfc7748/X25519.cs
parentAdd asymmetric multiplication (diff)
downloadBouncyCastle.NET-ed25519-56d58cba091c7e03253b1b43b81e21d69c82c143.tar.xz
RFC 7748: Export size constants for scalars, points
Diffstat (limited to 'crypto/src/math/ec/rfc7748/X25519.cs')
-rw-r--r--crypto/src/math/ec/rfc7748/X25519.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/src/math/ec/rfc7748/X25519.cs b/crypto/src/math/ec/rfc7748/X25519.cs
index a10d53da5..d63cc5a3e 100644
--- a/crypto/src/math/ec/rfc7748/X25519.cs
+++ b/crypto/src/math/ec/rfc7748/X25519.cs
@@ -6,6 +6,9 @@ namespace Org.BouncyCastle.Math.EC.Rfc7748
 {
     public abstract class X25519
     {
+        public const int PointSize = 32;
+        public const int ScalarSize = 32;
+
         private const int C_A = 486662;
         private const int C_A24 = (C_A + 2)/4;