diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-08-24 00:50:53 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-08-24 00:50:53 +0700 |
commit | d3037c2b2f4f76c05e12b4d8e2c3326601440d6f (patch) | |
tree | 138533d108a8033758fbad1a81e942904f4d0557 /crypto/test/src | |
parent | Cleanup (diff) | |
download | BouncyCastle.NET-ed25519-d3037c2b2f4f76c05e12b4d8e2c3326601440d6f.tar.xz |
Span-based variant for IBlockCipher.ProcessBlock
Diffstat (limited to 'crypto/test/src')
-rw-r--r-- | crypto/test/src/crypto/prng/test/CtrDrbgTest.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs b/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs index 65209abdb..3e90c5752 100644 --- a/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs +++ b/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs @@ -512,6 +512,15 @@ namespace Org.BouncyCastle.Crypto.Prng.Test return cipher.ProcessBlock(input, inOff, output, outOff); } + // NOTE: .NET Core 2.1 has Span<T>, but is tested against our .NET Standard 2.0 assembly. +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +#if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER + public int ProcessBlock(ReadOnlySpan<byte> input, Span<byte> output) + { + return cipher.ProcessBlock(input, output); + } +#endif + public void Reset() { cipher.Reset(); |