11 private static readonly RandomNumberGenerator rnd = RandomNumberGenerator.Create();
30 byte[] Seed =
new byte[NrBytes];
53 protected static void Clear(
byte[] Bin)
55 Array.Clear(Bin, 0, Bin.Length);
64 Array.Clear(f, 0, f.Length);
75 for (i = 0; i < c; i++)
85 0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F,
86 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF,
96 0x00000000, 0x00000001, 0x00000003, 0x00000007,
97 0x0000000F, 0x0000001F, 0x0000003F, 0x0000007F,
98 0x000000FF, 0x000001FF, 0x000003FF, 0x000007FF,
99 0x00000FFF, 0x00001FFF, 0x00003FFF, 0x00007FFF,
100 0x0000FFFF, 0x0001FFFF, 0x0003FFFF, 0x0007FFFF,
101 0x000FFFFF, 0x001FFFFF, 0x003FFFFF, 0x007FFFFF,
102 0x00FFFFFF, 0x01FFFFFF, 0x03FFFFFF, 0x07FFFFFF,
103 0x0FFFFFFF, 0x1FFFFFFF, 0x3FFFFFFF, 0x7FFFFFFF
Methods common to ML algorithms.
static void Clear(byte[] Bin)
Clears a byte array.
static readonly int[] intBitMask
Bit masks corresponding to mod 2^d arithmetic, where d is the index of the mask in the array.
abstract int PrivateKeyLength
Length of the private key.
static readonly ushort[] ushortBitMask
Bit masks corresponding to mod 2^d arithmetic, where d is the index of the mask in the array.
abstract int PublicKeyLength
Length of the public key.
static byte[] CreateSeed(int NrBytes)
Creates a random seed value.
static void Clear< T >(T[] f)
Clears a polynomial coefficient vector.
static byte[] CreateSeed()
Creates a random seed value.