Click or drag to resize

RC2CryptoServiceProvider Class

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the Crestron.SimplSharp.Cryptography.RC2 algorithm. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographySymmetricAlgorithm
    Crestron.SimplSharp.CryptographyRC2
      Crestron.SimplSharp.CryptographyRC2CryptoServiceProvider

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public sealed class RC2CryptoServiceProvider : RC2

The RC2CryptoServiceProvider type exposes the following members.

Constructors
 NameDescription
Public methodRC2CryptoServiceProvider Initializes a new instance of the Crestron.SimplSharp.Cryptography.RC2CryptoServiceProvider class.
Top
Properties
 NameDescription
Public propertyBlockSize Gets or sets the block size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm)
Public propertyEffectiveKeySize Gets or sets the effective size, in bits, of the secret key used by the Crestron.SimplSharp.Cryptography.RC2 algorithm.
(Overrides RC2EffectiveKeySize)
Public propertyFeedbackSize Gets or sets the feedback size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm)
Public propertyIV Gets or sets the initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV) for the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyKey Gets or sets the secret key for the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyKeySize Gets or sets the size of the secret key used by the Crestron.SimplSharp.Cryptography.RC2 algorithm in bits.
(Inherited from RC2)
Public propertyLegalBlockSizes Gets the block sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyLegalKeySizes Gets the key sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyMode Gets or sets the mode for operation of the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyPadding Gets or sets the padding mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Public propertyUseSalt Gets or sets a value that determines whether to create a key with an 11-byte-long, zero-value salt.
Top
Methods
 NameDescription
Public methodClear Releases all resources used by the Crestron.SimplSharp.Cryptography.SymmetricAlgorithm class.
(Inherited from SymmetricAlgorithm)
Public methodCreateDecryptor Creates a symmetric decryptor object with the current Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key property and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).
(Inherited from SymmetricAlgorithm)
Public methodCreateDecryptor(Byte, Byte) Creates a symmetric Crestron.SimplSharp.Cryptography.RC2 decryptor object with the specified key (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key)and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).
(Overrides SymmetricAlgorithmCreateDecryptor(Byte, Byte))
Public methodCreateEncryptor Creates a symmetric encryptor object with the current Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key property and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).
(Inherited from SymmetricAlgorithm)
Public methodCreateEncryptor(Byte, Byte) Creates a symmetric Crestron.SimplSharp.Cryptography.RC2 encryptor object with the specified key (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key) and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).
(Overrides SymmetricAlgorithmCreateEncryptor(Byte, Byte))
Public methodDispose Dispose
(Inherited from SymmetricAlgorithm)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the Crestron.SimplSharp.Cryptography.SymmetricAlgorithm and optionally releases the managed resources.
(Inherited from SymmetricAlgorithm)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGenerateIV Generates a random initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV) to use for the algorithm.
(Overrides SymmetricAlgorithmGenerateIV)
Public methodGenerateKey Generates a random key (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key) to be used for the algorithm.
(Overrides SymmetricAlgorithmGenerateKey)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodValidKeySize Determines whether the specified key size is valid for the current algorithm.
(Inherited from SymmetricAlgorithm)
Top
Fields
 NameDescription
Protected fieldBlockSizeValue Represents the block size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm)
Protected fieldEffectiveKeySizeValue Represents the effective size of the secret key used by the Crestron.SimplSharp.Cryptography.RC2 algorithm in bits.
(Inherited from RC2)
Protected fieldFeedbackSizeValue Represents the feedback size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm)
Protected fieldIVValue Represents the initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV) for the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldKeySizeValue Represents the size, in bits, of the secret key used by the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldKeyValue Represents the secret key for the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldLegalBlockSizesValue Specifies the block sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldLegalKeySizesValue Specifies the key sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldModeValue Represents the cipher mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Protected fieldPaddingValue Represents the padding mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also