Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property int KeySize {
	virtual int get() override;
	virtual void set(int value) override;
}

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft