set_KeySize()

SymmetricAlgorithm::set_KeySize(int) method

Sets key size of cryptographic operation.

virtual void System::Security::Cryptography::SymmetricAlgorithm::set_KeySize(int value)

Arguments

ParameterTypeDescription
valueintKey size in bits.

Exceptions

ExceptionDescription
CryptographicExceptionIf key size is not valid.

See Also