Constructors: NewKeySizes

NewKeySizes

Creates a new KeySizes object with the MinSize, MaxSize, and SkipSize properties defined.



 Public Function NewKeySizes(
	  ByVal MinSize As Long,
	  ByVal MaxSize As Long,
	  ByVal SkipSize As Long ) As KeySizes

Parameters

MinSize
[ByVal] Long. The smallest key size defined by this KeySizes instance.
MaxSize
[ByVal] Long. The largest key size defined by this KeySizes instance.
SkipSize
[ByVal] Long. The step size from MinSize to MaxSize of legal key sizes between the smallest and largest legal key sizes in this instance.

Return Values

KeySizes -  A new KeySizes object with the MinSize, MaxSize, and SkipSize properties defined.

Remarks

A KeySizes object represents a set of legal key sizes. It defines all the possible legal key sizes by defining the smallest and largest key sizes allows, then defining a step size used to calculate the additional legal key sizes between the smallest and largest key sizes.

If the smallest key size is 64 and the largest key size is 128 and a skip size of 32 is defined, then all possible legal key sizes are from 64 to 128 in increments of 32. In this case, the valid key sizes are 64, 96 and 128.

See Also

Project CorLib Overview

Class Constructors Overview

KeySizes