RC2CryptoServiceProvider: ValidKeySize

ValidKeySize

Tests if a specific bit length is valid for a key.



 Public Function ValidKeySize(
	  ByVal BitLength As Long ) As Boolean

Parameters

BitLength
[ByVal] Long. The number of bits to test for.

Return Values

Boolean -  Return True if the number of bits is supported, False otherwise.

Remarks

Valid sizes are from 40 bits to 128 bits in steps of 8 bits.

See Also

Project CorLib Overview

Class RC2CryptoServiceProvider Overview