SymmetricAlgorithm.ValidKeySize Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public bool ValidKeySize(
	int bitLength
)

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: