Share via


BlockSize Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

Syntax

'Declaration
Public Overridable Property BlockSize As Integer
public virtual int BlockSize { get; set; }
public:
virtual property int BlockSize {
    int get ();
    void set (int value);
}
abstract BlockSize : int with get, set
override BlockSize : int with get, set
function get BlockSize () : int
function set BlockSize (value : int)

Property Value

Type: System. . :: . .Int32
The block size, in bits.

Remarks

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.

.NET Framework Security

See Also

Reference

SymmetricAlgorithm Class

System.Security.Cryptography Namespace