SymmetricAlgorithm.ValidKeySize Method (Int32)

 

Determines whether the specified key size is valid for the current algorithm.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

member ValidKeySize : 
        bitLength:int -> bool

Parameters

bitLength
Type: System.Int32

The length, in bits, to check for a valid key size.

Return Value

Type: System.Boolean

true if the specified key size is valid for the current algorithm; otherwise, false.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: