SecurityServices for .NET 2.0 Documentation

RijndaelCryptoServiceProvider.KeySize Property

[This is preliminary documentation and subject to change.]

Gets or sets the size of the secret key used by the symmetric algorithm in bits.

publicoverrideKeySize{get;set;}

Property Value

The size 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 LegalKeySizes.

Exceptions

Exception Type Condition
CryptographicException The key size is not valid.

See Also

RijndaelCryptoServiceProvider Class | Org.Mentalis.SecurityServices.Cryptography Namespace