Share via


SymmetricKeyAlgorithmProvider.BlockLength Property

Definition

Gets the size, in bytes, of the cipher block for the open algorithm.

public uint BlockLength { get; }

Property Value

UInt32

Block size.

Remarks

If you are not using a PKCS#7 block padding algorithm (which automatically pads your content to the correct length), you must ensure that the message to be encrypted is an exact multiple of the length supported by the algorithm. For more information, see the following code example.

Applies to

See also