System.Security.Cryptography.SymmetricAlgorithm.ValidKeySize Method

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

Syntax

public bool ValidKeySize (int bitLength)

Parameters

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

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0