Метод | Описание | |
---|---|---|
CreateKeyExchange ( ) : byte[] |
Creates the key exchange data.
|
|
DecryptKeyExchange ( byte keyEx ) : byte[] |
Extracts secret information from the key exchange data.
|
|
DiffieHellmanManaged ( ) : System |
Initializes a new DiffieHellmanManaged instance. The default length of the shared secret is 1024 bits. |
|
DiffieHellmanManaged ( byte p, byte g, byte x ) : System |
Initializes a new DiffieHellmanManaged instance.
|
|
DiffieHellmanManaged ( byte p, byte g, int l ) : System |
Initializes a new DiffieHellmanManaged instance.
|
|
DiffieHellmanManaged ( int bitlen, int l, DHKeyGeneration keygen ) : System |
Initializes a new DiffieHellmanManaged instance. The larger the bit length, the more secure the algorithm is. The default is 1024 bits. The minimum bit length is 128 bits. |
|
ExportParameters ( bool includePrivateParameters ) : |
Exports the DHParameters.
|
|
ImportParameters ( |
Imports the specified DHParameters.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources.
|
Метод | Описание | |
---|---|---|
GenerateKey ( int bitlen, DHKeyGeneration keygen, |
||
Initialize ( |
public DecryptKeyExchange ( byte keyEx ) : byte[] | ||
keyEx | byte | The key exchange data within which the shared key is hidden. |
Результат | byte[] |
public DiffieHellmanManaged ( byte p, byte g, byte x ) : System | ||
p | byte | The P parameter of the Diffie-Hellman algorithm. This is a public parameter. |
g | byte | The G parameter of the Diffie-Hellman algorithm. This is a public parameter. |
x | byte | The X parameter of the Diffie-Hellman algorithm. This is a private parameter. If this parameters is a null reference (Nothing in Visual Basic), a secret value of the default size will be generated. |
Результат | System |
public DiffieHellmanManaged ( byte p, byte g, int l ) : System | ||
p | byte | The P parameter of the Diffie-Hellman algorithm. |
g | byte | The G parameter of the Diffie-Hellman algorithm. |
l | int | The length, in bits, of the private value. If 0 is specified, the default value will be used. |
Результат | System |
public DiffieHellmanManaged ( int bitlen, int l, DHKeyGeneration keygen ) : System | ||
bitlen | int | The length, in bits, of the public P parameter. |
l | int | The length, in bits, of the secret value X. This parameter can be set to 0 to use the default size. |
keygen | DHKeyGeneration | One of the |
Результат | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Результат | void |
public ExportParameters ( bool includePrivateParameters ) : |
||
includePrivateParameters | bool | true to include private parameters; otherwise, false. |
Результат |
public ImportParameters ( |
||
parameters | The parameters for |
|
Результат | void |