diff options
author | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-07-01 17:49:49 -0400 |
---|---|---|
committer | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-07-01 17:49:49 -0400 |
commit | 97f75c7bb78cb05c8af750eb9bb3b309463cd1ba (patch) | |
tree | 2c20279e524eb7d7013d3a7fe3539736a52142ef /crypto/src/util | |
parent | Fix static readonly collections (diff) | |
download | BouncyCastle.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.cs | 11 |
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) { |