/// <summary> /// Decrypt data with the key and the initialization vector provided. /// </summary> public static byte[] Decrypt(byte[] data, int start, int length, byte[] key, byte[] iv, int nbIterations) { Transform(data, start, length, key, nbIterations); return(AES.Decrypt(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); }