CryptoPool
using System.Buffers;
namespace System.Security.Cryptography
{
internal static class CryptoPool
{
internal static byte[] Rent(int minimumLength)
{
return ArrayPool<byte>.Shared.Rent(minimumLength);
}
internal static void Return(byte[] array, int clearSize = -1)
{
bool flag = clearSize < 0;
if (!flag && clearSize != 0)
Array.Clear(array, 0, clearSize);
ArrayPool<byte>.Shared.Return(array, flag);
}
}
}