From 94173c7f8b2d87b28353b7e9ee8d0f2514f02875 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 14 Oct 2018 19:40:02 +0700 Subject: Port of CVC-ECDSA and PLAIN-ECDSA from Java --- crypto/src/util/Arrays.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crypto/src/util/Arrays.cs') diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs index a9a574dbf..4a8c65e88 100644 --- a/crypto/src/util/Arrays.cs +++ b/crypto/src/util/Arrays.cs @@ -469,6 +469,14 @@ namespace Org.BouncyCastle.Utilities } } + public static void Fill(byte[] buf, int from, int to, byte b) + { + for (int i = from; i < to; ++i) + { + buf[i] = b; + } + } + public static byte[] CopyOf(byte[] data, int newLength) { byte[] tmp = new byte[newLength]; -- cgit 1.5.1