summary refs log tree commit diff
path: root/crypto/src/math/ec
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-08-07 20:35:20 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-08-07 20:35:20 +0700
commit94a215651b23921043cb3d7d41550ea49dd7a79c (patch)
tree5b498f9b9462f029e9c7616fde43293d1170e93e /crypto/src/math/ec
parentFix Encode return values (diff)
downloadBouncyCastle.NET-ed25519-94a215651b23921043cb3d7d41550ea49dd7a79c.tar.xz
Cleanup after bc-fips-csharp updates
Diffstat (limited to 'crypto/src/math/ec')
-rw-r--r--crypto/src/math/ec/rfc8032/Ed25519.cs10
-rw-r--r--crypto/src/math/ec/rfc8032/Ed448.cs2
2 files changed, 6 insertions, 6 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed25519.cs b/crypto/src/math/ec/rfc8032/Ed25519.cs
index b50df8525..8f87e3a5a 100644
--- a/crypto/src/math/ec/rfc8032/Ed25519.cs
+++ b/crypto/src/math/ec/rfc8032/Ed25519.cs
@@ -803,16 +803,16 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
             PointExt d = PointCopy(q);
             PointAdd(q, d);
 
-            int[] table = X25519Field.CreateTable(count * 4);
+            int[] table = F.CreateTable(count * 4);
             int off = 0;
 
             int i = 0;
             for (;;)
             {
-                X25519Field.Copy(q.x, 0, table, off); off += X25519Field.Size;
-                X25519Field.Copy(q.y, 0, table, off); off += X25519Field.Size;
-                X25519Field.Copy(q.z, 0, table, off); off += X25519Field.Size;
-                X25519Field.Copy(q.t, 0, table, off); off += X25519Field.Size;
+                F.Copy(q.x, 0, table, off); off += F.Size;
+                F.Copy(q.y, 0, table, off); off += F.Size;
+                F.Copy(q.z, 0, table, off); off += F.Size;
+                F.Copy(q.t, 0, table, off); off += F.Size;
 
                 if (++i == count)
                     break;
diff --git a/crypto/src/math/ec/rfc8032/Ed448.cs b/crypto/src/math/ec/rfc8032/Ed448.cs
index 710fb545e..e0478af9f 100644
--- a/crypto/src/math/ec/rfc8032/Ed448.cs
+++ b/crypto/src/math/ec/rfc8032/Ed448.cs
@@ -713,7 +713,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
             PointExt d = PointCopy(q);
             PointDouble(d);
 
-            uint[] table = X448Field.CreateTable(count * 3);
+            uint[] table = F.CreateTable(count * 3);
             int off = 0;
 
             int i = 0;