ECDsaCng Class
Updated: March 2011
Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).
System.Security.Cryptography::AsymmetricAlgorithm
System.Security.Cryptography::ECDsa
System.Security.Cryptography::ECDsaCng
Assembly: System.Core (in System.Core.dll)
The ECDsaCng type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ECDsaCng() | Initializes a new instance of the ECDsaCng class with a random key pair. |
![]() | ECDsaCng(CngKey) | Initializes a new instance of the ECDsaCng class by using the specified CngKey object. |
![]() | ECDsaCng(Int32) | Initializes a new instance of the ECDsaCng class with a random key pair, using the specified key size. |
| Name | Description | |
|---|---|---|
![]() | HashAlgorithm | Gets or sets the hash algorithm to use when signing and verifying data. |
![]() | Key | Gets or sets the key to use when signing and verifying data. |
![]() | KeyExchangeAlgorithm | Gets the name of the key exchange algorithm. (Inherited from ECDsa.) |
![]() | KeySize | Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.) |
![]() | LegalKeySizes | Gets the key sizes that are supported by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.) |
![]() | SignatureAlgorithm | Gets the name of the signature algorithm. (Inherited from ECDsa.) |
| Name | Description | |
|---|---|---|
![]() | Clear | Releases all resources used by the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm.) |
![]() | Dispose() | Releases all resources used by the current instance of the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources. (Inherited from AsymmetricAlgorithm.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FromXmlString(String) | This method is not implemented. (Overrides AsymmetricAlgorithm::FromXmlString(String).) |
![]() | FromXmlString(String, ECKeyXmlFormat) | Deserializes the key information from an XML string by using the specified format. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SignData(array<Byte>) | Generates a signature for the specified data. |
![]() | SignData(Stream) | Generates a signature for the specified data stream, reading to the end of the stream. |
![]() | SignData(array<Byte>, Int32, Int32) | Generates a digital signature for the specified length of data, beginning at the specified offset. |
![]() | SignHash | Generates a signature for the specified hash value. (Overrides ECDsa::SignHash(array<Byte>).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | ToXmlString(Boolean) | This method is not implemented. (Overrides AsymmetricAlgorithm::ToXmlString(Boolean).) |
![]() | ToXmlString(ECKeyXmlFormat) | Serializes the key information to an XML string by using the specified format. |
![]() | VerifyData(array<Byte>, array<Byte>) | Verifies the digital signature of the specified data. |
![]() | VerifyData(Stream, array<Byte>) | Verifies the digital signature of the specified data stream, reading to the end of the stream. |
![]() | VerifyData(array<Byte>, Int32, Int32, array<Byte>) | Verifies a signature for the specified length of data, beginning at the specified offset. |
![]() | VerifyHash | Verifies the specified digital signature against a specified hash value. (Overrides ECDsa::VerifyHash(array<Byte>, array<Byte>).) |
| Name | Description | |
|---|---|---|
![]() | KeySizeValue | Represents the size, in bits, of the key modulus used by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.) |
![]() | LegalKeySizesValue | Specifies the key sizes that are supported by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.) |
This class derives from the ECDsa abstract base class.
Note |
|---|
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes. |
Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
