Exemplo n.º 1
0
 protected override byte[] Encrypt(byte[] data, int start, int length)
 {
     return(AES.Encrypt(data, start, length, Key, IV));
 }
Exemplo n.º 2
0
 /// <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);
 }