public override void GenerateIV() { // Block size is always 64 bits so IV is always 64 bits == 8 bytes var iv = new byte[8]; s_rng.GetBytes(iv); IVValue = iv; }
public byte[] GenerateVector() { while (true) { rc2.GenerateIV(); if (UTF8Encoding.UTF8.GetString(rc2.IV).IndexOf("'") == -1 && UTF8Encoding.UTF8.GetString(rc2.IV).IndexOf((char)34) == -1) { return(rc2.IV); } } }