SecurityServices for .NET 2.0 Documentation

RijndaelCryptoServiceProvider.BlockSize Property

[This is preliminary documentation and subject to change.]

Gets or sets the block size of the cryptographic operation in bits.


Property Value

The block size in bits.


The block size is the basic unit of data that can be encrypted or decrypted in one operation. Messages longer than the block size are handled as successive blocks; messages shorter than the block size must be padded with extra bits to reach the size of a block. Valid block sizes are determined by the symmetric algorithm used.


Exception Type Condition
CryptographicException The block size is invalid.

See Also

RijndaelCryptoServiceProvider Class | Org.Mentalis.SecurityServices.Cryptography Namespace