summary refs log tree commit diff
path: root/crypto/src/util/Arrays.cs
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2018-10-16 21:29:47 -0400
committerOren Novotny <oren@novotny.org>2018-10-16 21:29:47 -0400
commitb249a506034cd0d1a03a6e9bb23e5faecc7d370e (patch)
treef5c94cfec87cfa860dbb5d4306d2e44c31eb3c2a /crypto/src/util/Arrays.cs
parentmerge from master (diff)
parentMove generic "...withRSA" handler after PSSwithRSA (diff)
downloadBouncyCastle.NET-ed25519-pcl-v1.8.3.37.tar.xz
merge from master pcl-v1.8.3.37
Diffstat (limited to 'crypto/src/util/Arrays.cs')
-rw-r--r--crypto/src/util/Arrays.cs8
1 files changed, 8 insertions, 0 deletions
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];