Click or drag to resize

DSACryptoServiceProvider Class

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the Crestron.Simple.Cryptography.DSA algorithm. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographyAsymmetricAlgorithm
    Crestron.SimplSharp.CryptographyDSA
      Crestron.SimplSharp.CryptographyDSACryptoServiceProvider

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public sealed class DSACryptoServiceProvider : DSA, 
	ICspAsymmetricAlgorithm

The DSACryptoServiceProvider type exposes the following members.

Constructors
 NameDescription
Public methodDSACryptoServiceProvider Initializes a new instance of the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider class.
Public methodDSACryptoServiceProvider(CspParameters) Initializes a new instance of the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP).
Public methodDSACryptoServiceProvider(Int32) Initializes a new instance of the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider class with the specified key size.
Public methodDSACryptoServiceProvider(Int32, CspParameters) Initializes a new instance of the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).
Top
Properties
 NameDescription
Public propertyCspKeyContainerInfo Gets a Crestron.SimplSharp.Cryptography.CspKeyContainerInfo object that describes additional information about a cryptographic key pair.
Public propertyKeyExchangeAlgorithm Gets the name of the key exchange algorithm.
(Overrides DSAKeyExchangeAlgorithm)
Public propertyKeySize Gets the size of the key used by the asymmetric algorithm in bits.
(Overrides AsymmetricAlgorithmKeySize)
Public propertyLegalKeySizes Gets the key sizes that are supported by the asymmetric algorithm.
(Inherited from AsymmetricAlgorithm)
Public propertyPersistKeyInCsp Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).
Public propertyPublicOnly Gets a value that indicates whether the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider object contains only a public key.
Public propertySignatureAlgorithm Gets the name of the signature algorithm.
(Overrides DSASignatureAlgorithm)
Public propertyUseMachineKeyStore Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.
Top
Methods
 NameDescription
Public methodClear Releases all resources used by the Crestron.SimplSharp.Cryptography.AsymmetricAlgorithm class.
(Inherited from AsymmetricAlgorithm)
Public methodCreateSignature Creates the Crestron.SimplSharp.Cryptography.DSA signature for the specified data.
(Overrides DSACreateSignature(Byte))
Public methodDispose Dispose
(Inherited from AsymmetricAlgorithm)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider and optionally releases the managed resources.
(Overrides DSADispose(Boolean))
Public methodExportCspBlob Exports a blob containing the key information associated with a Crestron.SimplSharp.Cryptography.DSACryptoServiceProvider object.
Public methodExportParameters Exports the Crestron.SimplSharp.Cryptography.DSAParameters.
(Overrides DSAExportParameters(Boolean))
Public methodImportCspBlob Imports a blob that represents DSA key information.
Public methodImportParameters Imports the specified Crestron.SimplSharp.Cryptography.DSAParameters.
(Overrides DSAImportParameters(DSAParameters))
Public methodSignData(Byte) Computes the hash value of the specified byte array and signs the resulting hash value.
Public methodSignData(Stream) Computes the hash value of the specified input stream and signs the resulting hash value.
Public methodSignData(Byte, Int32, Int32) Signs a byte array from the specified start point to the specified end point.
Public methodSignHash Computes the signature for the specified hash value by encrypting it with the private key.
Public methodVerifyData Verifies the specified signature data by comparing it to the signature computed for the specified data.
Public methodVerifyHash Verifies the specified signature data by comparing it to the signature computed for the specified hash value.
Public methodVerifySignature Verifies the Crestron.SimplSharp.Cryptography.DSA signature for the specified data.
(Overrides DSAVerifySignature(Byte, Byte))
Top
Fields
 NameDescription
Protected fieldKeySizeValue Represents the size, in bits, of the key modulus used by the asymmetric algorithm.
(Inherited from AsymmetricAlgorithm)
Protected fieldLegalKeySizesValue Specifies the key sizes that are supported by the asymmetric algorithm.
(Inherited from AsymmetricAlgorithm)
Top

Version Information

.NET Compact Framework

Supported in: 3.5
See Also