SymmetricAlgorithm: BlockSize (let)

BlockSize

Sets the block size, in bits, used by the cryptographic operation.



 Public Property Let BlockSize(
	  ByVal Value As Long ) :

Parameters

Value
[ByVal] Long. 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.

A list of valid block sizes can be obtained through the LegalBlockSizes property.

Read/Write.

Exceptions

ExceptionCondition
CryptographicExceptionThe block size is invalid.

See Also

Project CorLib Overview

Class SymmetricAlgorithm Overview

LegalBlockSizes