Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

DiffieHellmanCryptoServiceProvider Class

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 8.0.9673)

Wrapper around Diffie-Hellman CSP. This class is deprecated. Please use Create(Int32) instead.

Syntax
[Obsolete("The DiffieHellmanCryptoServiceProvider class has been deprecated. Use DiffieHellman.Create instead.", false)]
public class DiffieHellmanCryptoServiceProvider : DiffieHellman, IDisposable
Inheritance
Object
AsymmetricAlgorithm
DiffieHellman
DiffieHellmanCryptoServiceProvider
Implements
IDisposable
Inherited Members
DiffieHellman.Create()
DiffieHellman.Create(Int32)
DiffieHellman.FromXmlString(String)
DiffieHellman.GetKeyMaterialDeriver(Byte[])
DiffieHellman.GetOakleyGenerator()
DiffieHellman.GetOakleyGroup14()
DiffieHellman.GetOakleyGroup2()
DiffieHellman.GetOakleyGroupParameters(Int32)
DiffieHellman.KeyExchangeAlgorithm
DiffieHellman.SignatureAlgorithm
DiffieHellman.ToXmlString(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
AsymmetricAlgorithm.Clear()
AsymmetricAlgorithm.Create(String)
AsymmetricAlgorithm.Dispose()
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportPkcs8PrivateKey()
AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfo()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfoPem()
AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)
AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32)
AsymmetricAlgorithm.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
AsymmetricAlgorithm.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)
AsymmetricAlgorithm.ImportFromPem(ReadOnlySpan<Char>)
AsymmetricAlgorithm.ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)
AsymmetricAlgorithm.ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)
AsymmetricAlgorithm.KeySize
AsymmetricAlgorithm.KeySizeValue
AsymmetricAlgorithm.LegalKeySizes
AsymmetricAlgorithm.LegalKeySizesValue
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportPkcs8PrivateKey(Span<Byte>, Int32)
AsymmetricAlgorithm.TryExportPkcs8PrivateKeyPem(Span<Char>, Int32)
AsymmetricAlgorithm.TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)
AsymmetricAlgorithm.TryExportSubjectPublicKeyInfoPem(Span<Char>, Int32)

Constructors

Name Description
DiffieHellmanCryptoServiceProvider()

Creates an instance of DiffieHellmanCryptoServiceProvider using the default key size of 2048.

DiffieHellmanCryptoServiceProvider(Int32)

Creates an instance of DiffieHellmanCryptoServiceProvider using the specified key size.

Properties

Name Description
KeyExchangeAlgorithm

Gets the name of the key exchange algorithm available with this implementation of DiffieHellman. Inherited from DiffieHellman.

SignatureAlgorithm

Gets the name of the signature algorithm available with this implementation of DiffieHellman. Inherited from DiffieHellman.

Methods

Name Description
Create()

Creates an instance of DiffieHellman class. Inherited from DiffieHellman.

Create(Int32)

Creates an instance of DiffieHellman class with a specified key size. Inherited from DiffieHellman.

Dispose(Boolean)

Releases the unmanaged resources and optionally releases the managed resources.

ExportParameters(Boolean)

Exports the DiffieHellmanParameters.

FromXmlString(String)

When overridden in a derived class, reconstructs a DiffieHellmanManaged object from an XML string. Inherited from DiffieHellman.

GetKeyMaterialDeriver(Byte[])

Gets key material deriver. Inherited from DiffieHellman.

GetOakleyGenerator()

Returns Oakley generator value. Inherited from DiffieHellman.

GetOakleyGroup14()

Returns Oakley group 14. Inherited from DiffieHellman.

GetOakleyGroup2()

Returns Oakley group 2. Inherited from DiffieHellman.

GetOakleyGroupParameters(Int32)

Returns parameters for Oakley Groups 5, 14, 15, 16, 17 or 18 (the 'MODP' groups specified by RFC 3526. Inherited from DiffieHellman.

GetPublicKey()

Returns the public key.

GetSharedSecretKey(Byte[])

Calculates the shared secret key from the other side's public key.

ImportParameters(DiffieHellmanParameters)

Imports the specified DiffieHellmanParameters.

ToXmlString(Boolean)

Creates and returns an XML string representation of the current object. Inherited from DiffieHellman.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies