ECDsaCng Class
Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).
Assembly: System.Core (in System.Core.dll)
System.Security.Cryptography::AsymmetricAlgorithm
System.Security.Cryptography::ECDsa
System.Security.Cryptography::ECDsaCng
| 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(ECCurve) | Initializes a new instance of the ECDsaCng class whose public/private key pair is generated over the specified curve. |
![]() | 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.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | ExportExplicitParameters(Boolean) | Exports the key and explicit curve parameters used by the Elliptic curve cryptography (ECC) object into an ECParameters object. (Overrides ECDsa::ExportExplicitParameters(Boolean).) |
![]() | ExportParameters(Boolean) | Exports the key used by the Elliptic curve cryptography (ECC) object into an ECParameters object. If the key was created as a named curve, the Curve field contains named curve parameters; otherwise, it contains explicit parameters.(Overrides ECDsa::ExportParameters(Boolean).) |
![]() | 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. |
![]() | GenerateKey(ECCurve) | Generates a key to use for the ECDsaCng algorithm.(Overrides ECDsa::GenerateKey(ECCurve).) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ImportParameters(ECParameters) | Replaces the existing key that the current instance is working with by creating a new CngKey for the parameters structure.(Overrides ECDsa::ImportParameters(ECParameters).) |
![]() | SignData(array<Byte>^) | Generates a signature for the specified data. |
![]() | SignData(array<Byte>^, HashAlgorithmName) | Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value. (Inherited from ECDsa.) |
![]() | SignData(array<Byte>^, Int32, Int32) | Generates a digital signature for the specified length of data, beginning at the specified offset. |
![]() | SignData(array<Byte>^, Int32, Int32, HashAlgorithmName) | Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value. (Inherited from ECDsa.) |
![]() | SignData(Stream^) | Generates a signature for the specified data stream, reading to the end of the stream. |
![]() | SignData(Stream^, HashAlgorithmName) | Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.(Inherited from ECDsa.) |
![]() | SignHash(array<Byte>^) | 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(array<Byte>^, array<Byte>^, HashAlgorithmName) | Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature. (Inherited from ECDsa.) |
![]() | VerifyData(array<Byte>^, Int32, Int32, array<Byte>^) | Verifies a signature for the specified length of data, beginning at the specified offset. |
![]() | VerifyData(array<Byte>^, Int32, Int32, array<Byte>^, HashAlgorithmName) | Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature. (Inherited from ECDsa.) |
![]() | VerifyData(Stream^, array<Byte>^) | Verifies the digital signature of the specified data stream, reading to the end of the stream. |
![]() | VerifyData(Stream^, array<Byte>^, HashAlgorithmName) | Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature. (Inherited from ECDsa.) |
![]() | VerifyHash(array<Byte>^, array<Byte>^) | Verifies the specified digital signature against a specified hash value.(Overrides ECDsa::VerifyHash(array<Byte>^, array<Byte>^).) |
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

