Export (0) Print
Expand All

SymmetricAlgorithm.ValidKeySize Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft