Mentalis.org Security Library documentation

RijndaelCryptoServiceProvider.KeySize Property

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

[Visual Basic]
Overrides Public Property KeySize As Integer
[C#]
public override int KeySize {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 TypeCondition
CryptographicExceptionThe key size is not valid.

See Also

RijndaelCryptoServiceProvider Class | RijndaelCryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace