static internal byte[] GenerateCek(int bitLength)
 {
     byte[] cekMaterial = new byte[ByteUtils.ByteCount(bitLength)];
     using (var rng = RandomNumberGenerator.Create())
     {
         rng.GetBytes(cekMaterial);
     }
     return(cekMaterial);
 }
        public void TestByteCountWithoutRemainder()
        {
            // GIVEN
            const int bitLength = 64;

            // WHEN
            int byteCount = ByteUtils.ByteCount(bitLength);

            // THEN
            Assert.AreEqual(8, byteCount);
        }