summary refs log tree commit diff
path: root/crypto/src/math/ec
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-12 22:41:39 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-12 22:41:39 +0700
commit6b5d68e8a8d1991e15873ff1e0615d87f3eb7eec (patch)
treee899b3327fa90d1a70d24d53c8870d182585e73a /crypto/src/math/ec
parentPicnic perf. opts. (diff)
downloadBouncyCastle.NET-ed25519-6b5d68e8a8d1991e15873ff1e0615d87f3eb7eec.tar.xz
Refactoring in Pqc.Crypto.Cmce
Diffstat (limited to 'crypto/src/math/ec')
-rw-r--r--crypto/src/math/ec/custom/sec/SecT131Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT131Field.cs b/crypto/src/math/ec/custom/sec/SecT131Field.cs
index 6088b264c..f2c878d6a 100644
--- a/crypto/src/math/ec/custom/sec/SecT131Field.cs
+++ b/crypto/src/math/ec/custom/sec/SecT131Field.cs
@@ -370,7 +370,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         protected static void ImplSquare(ulong[] x, ulong[] zz)
         {
             Interleave.Expand64To128(x, 0, 2, zz, 0);
-            zz[4] = Interleave.Expand8to16((uint)x[2]);
+            zz[4] = Interleave.Expand8to16((byte)x[2]);
         }
     }
 }