From 97f75c7bb78cb05c8af750eb9bb3b309463cd1ba Mon Sep 17 00:00:00 2001 From: Roy Basmacier Date: Fri, 1 Jul 2022 17:49:49 -0400 Subject: SIKE implementation with compression added Implemented SecretWIhEcapsulationImpl.cs --- crypto/src/util/Arrays.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crypto/src/util') 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) { -- cgit 1.4.1