public void Encrypt(SymmetricAlgorithm algorithm, byte[] buffer, int offset, int length)
 {
     byte[] iv;
     byte[] cipherText;
     GenerateIVAndEncrypt(algorithm, buffer, offset, length, out iv, out cipherText);
     CipherData.SetCipherValueFragments(iv, cipherText);
 }