Dela via


SymmetricKeyAlgorithmProvider.BlockLength Property

Definition

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

public:
 property unsigned int BlockLength { unsigned int get(); };
uint32_t BlockLength();
public uint BlockLength { get; }
var uInt32 = symmetricKeyAlgorithmProvider.blockLength;
Public ReadOnly Property BlockLength As UInteger

Property Value

UInt32

unsigned int

uint32_t

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