ValidKeySize()

SymmetricAlgorithm::ValidKeySize(int) method

Checks if key size is valid.

bool System::Security::Cryptography::SymmetricAlgorithm::ValidKeySize(int bitLength)

Arguments

ParameterTypeDescription
bitLengthintKey size in bits.

Return Value

True if key size is valid, false otherwise.

See Also