Gets or sets the size of the secret key used by the symmetric algorithm in bits.
The size of the secret key used by the symmetric algorithm.
The valid key sizes are specified by the particular symmetric algorithm implementation and are listed in LegalKeySizes.
Exception Type | Condition |
---|---|
CryptographicException | The key size is not valid. |
RijndaelCryptoServiceProvider Class | RijndaelCryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace