C# Class Org.Mentalis.Security.Cryptography.DiffieHellman

Defines a base class from which all Diffie-Hellman implementations inherit.
Inheritance: System.Security.Cryptography.AsymmetricAlgorithm
Mostra file Open project: ElanHasson/SSIS-Extensions Class Usage Examples

Public Methods

Method Description
Create ( ) : DiffieHellman

Creates an instance of the default implementation of the DiffieHellman algorithm.

Create ( string algName ) : DiffieHellman

Creates an instance of the specified implementation of DiffieHellman.

CreateKeyExchange ( ) : byte[]

When overridden in a derived class, creates the key exchange data.

DecryptKeyExchange ( byte keyEx ) : byte[]

When overridden in a derived class, extracts secret information from the key exchange data.

DiffieHellman ( ) : System

Initializes a new DiffieHellman instance.

ExportParameters ( bool includePrivate ) : DHParameters

When overridden in a derived class, exports the DHParameters.

FromXmlString ( string xmlString ) : void

Reconstructs a DiffieHellman object from an XML string.

ImportParameters ( DHParameters parameters ) : void

When overridden in a derived class, imports the specified DHParameters.

ToXmlString ( bool includePrivateParameters ) : string

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

Private Methods

Method Description
GetNamedParam ( SecurityElement se, string param ) : byte[]

Method Details

Create() public static method

Creates an instance of the default implementation of the DiffieHellman algorithm.
public static Create ( ) : DiffieHellman
return DiffieHellman

Create() public static method

Creates an instance of the specified implementation of DiffieHellman.
public static Create ( string algName ) : DiffieHellman
algName string The name of the implementation of DiffieHellman to use.
return DiffieHellman

CreateKeyExchange() public abstract method

When overridden in a derived class, creates the key exchange data.
public abstract CreateKeyExchange ( ) : byte[]
return byte[]

DecryptKeyExchange() public abstract method

When overridden in a derived class, extracts secret information from the key exchange data.
public abstract DecryptKeyExchange ( byte keyEx ) : byte[]
keyEx byte The key exchange data within which the secret information is hidden.
return byte[]

DiffieHellman() public method

Initializes a new DiffieHellman instance.
public DiffieHellman ( ) : System
return System

ExportParameters() public abstract method

When overridden in a derived class, exports the DHParameters.
public abstract ExportParameters ( bool includePrivate ) : DHParameters
includePrivate bool true to include private parameters; otherwise, false.
return DHParameters

FromXmlString() public method

Reconstructs a DiffieHellman object from an XML string.
One of the values in the XML string is invalid.
public FromXmlString ( string xmlString ) : void
xmlString string The XML string to use to reconstruct the DiffieHellman object.
return void

ImportParameters() public abstract method

When overridden in a derived class, imports the specified DHParameters.
public abstract ImportParameters ( DHParameters parameters ) : void
parameters DHParameters The parameters for Diffie-Hellman.
return void

ToXmlString() public method

Creates and returns an XML string representation of the current DiffieHellman object.
public ToXmlString ( bool includePrivateParameters ) : string
includePrivateParameters bool true to include private parameters; otherwise, false.
return string