SymmetricAlgorithmBase: AddLegalBlockSize

AddLegalBlockSize

Adds a new KeySizes object with the specified values to the list of legal block sizes.



 Public Sub AddLegalBlockSize(
	  ByVal MinSize As Long,
	  ByVal MaxSize As Long,
	  ByVal SkipSize As Long )

Parameters

MinSize
[ByVal] Long. The mininum block size in bits the algorithm can process.
MaxSize
[ByVal] Long. The maximum block size in bits the algorithm can process.
SkipSize
[ByVal] Long. The number of bits the block size can change from minimum to maximum.

Remarks

A derived class uses this to add the set of legal block sizes the implementing algorithm can process.

As an example, the RijndaelManaged class calls this method in Class_Initialize.

 mBase.AddLegalBlockSize 128, 256, 64
 

See Also

Project CorLib Overview

Class SymmetricAlgorithmBase Overview