System::Security::Cryptography::SymmetricAlgorithm::ValidKeySize method

SymmetricAlgorithm::ValidKeySize method

Checks if key size is valid.

bool System::Security::Cryptography::SymmetricAlgorithm::ValidKeySize(int bitLength)
ParameterTypeDescription
bitLengthintKey size in bits.

ReturnValue

True if key size is valid, false otherwise.

See Also