SymmetricKeyAlgorithmProvider.BlockLength Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.