<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />

Org.BouncyCastle.Utilities.Bytes

public static class Bytes
namespace Org.BouncyCastle.Utilities { public static class Bytes { public const int NumBits = 8; public const int NumBytes = 1; public static void Xor(int len, byte[] x, byte[] y, byte[] z); public static void Xor(int len, byte[] x, int xOff, byte[] y, int yOff, byte[] z, int zOff); public static void XorTo(int len, byte[] x, byte[] z); public static void XorTo(int len, byte[] x, int xOff, byte[] z, int zOff); } }