views:

45

answers:

1

I'm using AESCryptoServiceProvider in C#/.Net Framework and I'm wondering how large, in bytes, the IV and Keys are. I'm pretty sure that this class follows the specifications of AES so if anyone has any ideas, I'd be happy to hear it :)

+3  A: 

The IV size is 16 bytes, and the default key size is 32 (16 and 24 are also allowed) You can use the BlockSize, KeySize, LegalBlockSizes, and LegalKeySizes properties, respectively. The API provides the value in bits.

Matthew Flaschen
Thanks! I scrolled through the docs like 15 times and I didn't realize that BlockSize and KeySize were properties >_>
DMan