none
AES256 Encryption in C# RRS feed

  • Question

  • I am using System.Security.Cryptography.RijndaelManaged class in C#(.NET 3.5) to do encryption with settings:

    RijndaelManaged AesCrypto = new RijndaelManaged();

    AesCrypto.BlockSize = 128;

    AesCrypto.Mode = CipherMode.CBC;

    CryptoStream CryptStream = new CryptoStream(memStream1,

        AesCrypto.CreateEncryptor(EncryptionKey1, EncryptionIV1),

                        CryptoStreamMode.Write);

    And with 256 bit key and IV. I believe that results in AES256. Am I right?

    Would there be any differences if I am using System.Security.Cryptography.AesManaged class?

    Also, I was thinking, we TRUST Microsoft implementation of AES, can this be verified, or maybe one should write his own implementation of AES?

    • Moved by Lisa Zhu Tuesday, April 9, 2013 5:29 AM
    Sunday, April 7, 2013 3:17 PM

Answers

All replies