private static void CheckValidIV(byte[] iv, string paramName) { if (iv == null) throw new ArgumentNullException(paramName); if (iv.Length != 8) throw new CryptographicException("Invalid IV size; it must be 8 bytes."); }