summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorRoy Basmacier <roy.basmacier@keyfactor.com>2022-07-01 17:49:49 -0400
committerRoy Basmacier <roy.basmacier@keyfactor.com>2022-07-01 17:49:49 -0400
commit97f75c7bb78cb05c8af750eb9bb3b309463cd1ba (patch)
tree2c20279e524eb7d7013d3a7fe3539736a52142ef /crypto/src/util
parentFix static readonly collections (diff)
downloadBouncyCastle.NET-ed25519-97f75c7bb78cb05c8af750eb9bb3b309463cd1ba.tar.xz
SIKE implementation with compression added
Implemented SecretWIhEcapsulationImpl.cs
Diffstat (limited to 'crypto/src/util')
-rw-r--r--crypto/src/util/Arrays.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index 87eab1d5f..c0c242273 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -571,6 +571,17 @@ namespace Org.BouncyCastle.Utilities
                 buf[--i] = b;
             }
         }
+        
+        public static void Fill(
+            ulong[]	buf,
+            ulong	b)
+        {
+            int i = buf.Length;
+            while (i > 0)
+            {
+                buf[--i] = b;
+            }
+        }
 
         public static void Fill(byte[] buf, int from, int to, byte b)
         {