SymmetricAlgorithm: KeySize (let)

KeySize

Gets the size of the key, in bits, used by the symmetric algorithm.



 Public Property Let KeySize(
	  ByVal Value As Long ) :

Parameters

Value
[ByVal] Long. The size, in bits, of the secret key used by the symmetric algorithm.

Remarks

The valid key sizes are specified by the particular symmetric algorithm implementation and are listed in the LegalKeySizes property.

Read/Write.

Exceptions

ExceptionCondition
CryptographicExceptionThe key size is not valid.

See Also

Project CorLib Overview

Class SymmetricAlgorithm Overview