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

Namespace: LLCryptoLib.Security.Cryptography
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public override int BlockSize { get; set; }
Visual Basic
Public Overrides Property BlockSize As Integer
	Get
	Set
Visual C++
public:
virtual property int BlockSize {
	int get () override;
	void set (int value) override;
}

Field Value

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.

Exceptions

ExceptionCondition
System.Security.Cryptography..::..CryptographicExceptionThe block size is invalid.

See Also