C# Класс Org.Mentalis.Security.Cryptography.DiffieHellman

Defines a base class from which all Diffie-Hellman implementations inherit.
Наследование: System.Security.Cryptography.AsymmetricAlgorithm
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetNamedParam ( SecurityElement se, string param ) : byte[]

Описание методов

Create() публичный статический Метод

Creates an instance of the default implementation of the DiffieHellman algorithm.
public static Create ( ) : DiffieHellman
Результат DiffieHellman

Create() публичный статический Метод

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.
Результат DiffieHellman

CreateKeyExchange() публичный абстрактный Метод

When overridden in a derived class, creates the key exchange data.
public abstract CreateKeyExchange ( ) : byte[]
Результат byte[]

DecryptKeyExchange() публичный абстрактный Метод

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.
Результат byte[]

DiffieHellman() публичный Метод

Initializes a new DiffieHellman instance.
public DiffieHellman ( ) : System
Результат System

ExportParameters() публичный абстрактный Метод

When overridden in a derived class, exports the DHParameters.
public abstract ExportParameters ( bool includePrivate ) : DHParameters
includePrivate bool true to include private parameters; otherwise, false.
Результат DHParameters

FromXmlString() публичный Метод

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.
Результат void

ImportParameters() публичный абстрактный Метод

When overridden in a derived class, imports the specified DHParameters.
public abstract ImportParameters ( DHParameters parameters ) : void
parameters DHParameters The parameters for Diffie-Hellman.
Результат void

ToXmlString() публичный Метод

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.
Результат string