protected override byte[] Encrypt(byte[] data, int start, int length) { return(AES.Encrypt(data, start, length, Key, IV)); }
/// <summary> /// Encrypt data with the key and the initialization vector provided. /// </summary> public static byte[] Encrypt(byte[] data, int start, int length, byte[] key, byte[] iv, int nbIterations) { byte[] encrypted = AES.Encrypt(data, start, length, key, iv); Transform(encrypted, key, nbIterations); return(encrypted); }