Share via

SymmetricAlgorithm.BlockSize Property


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

 virtual property int BlockSize { int get(); void set(int value); };
public virtual int BlockSize { get; set; }
member this.BlockSize : int with get, set
Public Overridable Property BlockSize As Integer

Property Value

The block size, in bits.


The block size is invalid.


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.

Applies to

See also