From 94a215651b23921043cb3d7d41550ea49dd7a79c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 7 Aug 2021 20:35:20 +0700 Subject: Cleanup after bc-fips-csharp updates --- crypto/src/math/ec/rfc8032/Ed25519.cs | 10 +++++----- crypto/src/math/ec/rfc8032/Ed448.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'crypto/src/math') 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; -- cgit 1.4.1