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 :)
How many bytes are IV and Keys for AES?
Asked Answered
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.
Thanks! I scrolled through the docs like 15 times and I didn't realize that BlockSize and KeySize were properties >_> –
Tyrus
So, it's correct to assume that AESCryptoServiceProvider defaults to AES-256? and not AES-128? –
Womenfolk
© 2022 - 2024 — McMap. All rights reserved.