This topic has not yet been rated - Rate this topic

RC2 Class

Represents the base class from which all implementations of the RC2 algorithm must derive.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)]
public abstract class RC2 : SymmetricAlgorithm

The RC2 type exposes the following members.

  Name Description
Protected method RC2 Initializes a new instance of RC2.
Top
  Name Description
Public property BlockSize Gets or sets the block size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.)
Public property EffectiveKeySize Gets or sets the effective size of the secret key used by the RC2 algorithm in bits.
Public property FeedbackSize Gets or sets the feedback size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.)
Public property IV Gets or sets the initialization vector (IV) for the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Public property Key Gets or sets the secret key for the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Public property KeySize Gets or sets the size of the secret key used by the RC2 algorithm in bits. (Overrides SymmetricAlgorithm.KeySize.)
Public property LegalBlockSizes Gets the block sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Public property LegalKeySizes Gets the key sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Public property Mode Gets or sets the mode for operation of the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Public property Padding Gets or sets the padding mode used in the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Top
  Name Description
Public method Clear Releases all resources used by the SymmetricAlgorithm class. (Inherited from SymmetricAlgorithm.)
Public method Static member Create() Creates an instance of a cryptographic object to perform the RC2 algorithm.
Public method Static member Create(String) Creates an instance of a cryptographic object to perform the specified implementation of the RC2 algorithm.
Public method CreateDecryptor() Creates a symmetric decryptor object with the current Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.)
Public method CreateDecryptor(Byte[], Byte[]) When overridden in a derived class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.)
Public method CreateEncryptor() Creates a symmetric encryptor object with the current Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.)
Public method CreateEncryptor(Byte[], Byte[]) When overridden in a derived class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.)
Public method Dispose() Releases all resources used by the current instance of the SymmetricAlgorithm class. (Inherited from SymmetricAlgorithm.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources. (Inherited from SymmetricAlgorithm.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateIV When overridden in a derived class, generates a random initialization vector (IV) to use for the algorithm. (Inherited from SymmetricAlgorithm.)
Public method GenerateKey When overridden in a derived class, generates a random key (Key) to use for the algorithm. (Inherited from SymmetricAlgorithm.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ValidKeySize Determines whether the specified key size is valid for the current algorithm. (Inherited from SymmetricAlgorithm.)
Top
  Name Description
Protected field BlockSizeValue Represents the block size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.)
Protected field EffectiveKeySizeValue Represents the effective size of the secret key used by the RC2 algorithm in bits.
Protected field FeedbackSizeValue Represents the feedback size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.)
Protected field IVValue Represents the initialization vector (IV) for the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field KeySizeValue Represents the size, in bits, of the secret key used by the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field KeyValue Represents the secret key for the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field LegalBlockSizesValue Specifies the block sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field LegalKeySizesValue Specifies the key sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field ModeValue Represents the cipher mode used in the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Protected field PaddingValue Represents the padding mode used in the symmetric algorithm. (Inherited from SymmetricAlgorithm.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ