BlockSize Property
Collapse the table of content
Expand the table of content

SymmetricAlgorithm.BlockSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public virtual int BlockSize { get; set; }

Property Value

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

ExceptionCondition
CryptographicException

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft