Share via


ECDiffieHellmanCryptoServiceProvider Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a wrapper Elliptic Curve Diffie-Hellman key exchange.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Cryptoki. . :: . .SessionContainer
    System.Security.Cryptography. . :: . .AsymmetricAlgorithm
      System.Security.Cryptography..::..ECDiffieHellmanCryptoServiceProvider

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

Syntax

'Declaration
Public NotInheritable Class ECDiffieHellmanCryptoServiceProvider _
    Inherits AsymmetricAlgorithm
public sealed class ECDiffieHellmanCryptoServiceProvider : AsymmetricAlgorithm
public ref class ECDiffieHellmanCryptoServiceProvider sealed : public AsymmetricAlgorithm
[<Sealed>]
type ECDiffieHellmanCryptoServiceProvider =  
    class
        inherit AsymmetricAlgorithm
    end
public final class ECDiffieHellmanCryptoServiceProvider extends AsymmetricAlgorithm

The ECDiffieHellmanCryptoServiceProvider type exposes the following members.

Constructors

  Name Description
Public method ECDiffieHellmanCryptoServiceProvider(CryptoKey) Initializes a new instance of the ECDiffieHellmanCryptoServiceProvider class with the specified key object.
Public method ECDiffieHellmanCryptoServiceProvider(Int32) Initializes a new instance of the ECDiffieHellmanCryptoServiceProvider class with the specified key size.
Public method ECDiffieHellmanCryptoServiceProvider(Session, Int32) Initializes a new instance of the ECDiffieHellmanCryptoServiceProvider class with the specified session object and key size.
Public method ECDiffieHellmanCryptoServiceProvider(String, Int32) Initializes a new instance of the ECDiffieHellmanCryptoServiceProvider class with the specified service provider and key size.

Top

Properties

  Name Description
Public property HashAlgorithm Gets or set the hash algorithm to use when generating the key material.
Public property HmacKey Gets or sets the hash-based message authentication code (HMAC) key to use when deriving key material.
Public property IsDisposed (Inherited from SessionContainer.)
Public property KeyDerivationFunction Gets or sets the key derivation function for the ECDiffieHellmanCryptoServiceProvider class.
Public property KeyPair Gets or sets the CryptoKey object representing the key pair for the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.)
Public property KeySize Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.)
Public property Label Gets or sets the label value that is used for key derivation.
Public property LegalKeySizes Gets the key sizes that are supported by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm.)
Public property PublicKey Gets the public key that can be used by another ECDiffieHellmanCryptoServiceProvider object to generate a shared secret agreement.
Public property SecretAppend Gets or sets a value that will be appended to the secret agreement when generating key material.
Public property SecretPrepend Gets or sets a value that will be added to the beginning of the secret agreement when deriving key material.
Public property Seed Gets or sets the seed value that will be used when deriving key material.
Public property Session (Inherited from SessionContainer.)
Public property UseSecretAgreementAsHmacKey Gets a value that indicates whether the secret agreement is used as a hash-based message authentication code (HMAC) key to derive key material.

Top

Methods

  Name Description
Public method Clear Releases all resources used by the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm.)
Public method DeriveKeyMaterial Derives the key material that is generated from the agreement between the two parties.
Public method Dispose() () () () (Inherited from SessionContainer.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
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.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member DefaultKeySize Specifies the key size to use if one is not provided. This value is set to 521.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Security.Cryptography Namespace