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

Org.BouncyCastle.Utilities.Shorts

public static class Shorts
namespace Org.BouncyCastle.Utilities { public static class Shorts { public const int NumBits = 16; public const int NumBytes = 2; public static short ReverseBytes(short i); public static ushort ReverseBytes(ushort i); public static short RotateLeft(short i, int distance); public static ushort RotateLeft(ushort i, int distance); public static short RotateRight(short i, int distance); public static ushort RotateRight(ushort i, int distance); } }