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
Requirements
Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0