KeySize Property
Collapse the table of content
Expand the table of content

RC2.KeySize Property

 

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

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public override int KeySize { get; set; }

Property Value

Type: System.Int32

The size of the secret key used by the RC2 algorithm.

Exception Condition
CryptographicException

The value for the RC2 key size is less than the effective key size value.

This algorithm supports key lengths from 40 bits to 1024 bits in increments of 8 bits, but the RC2CryptoServiceProvider implementation only supports key lengths from 40 bits to 128 bits in increments of 8 bits.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft