SymmetricAlgorithmBase: AddLegalKeySize

AddLegalKeySize

Adds a new KeySizes object with the supplied values to the list of legal key sizes.



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

Parameters

MinSize
[ByVal] Long. The mininum key size in bits the algorithm can use.
MaxSize
[ByVal] Long. The maximum key size in bits the algorithm can use.
SkipSize
[ByVal] Long. The number of bits used to step from the minimum to maximum key size. All intermediate sizes are also legal sizes.

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.AddLegalKeySize 128, 256, 64
 

See Also

Project CorLib Overview

Class SymmetricAlgorithmBase Overview