DiffieHellmanParametersCache.GetDiffieHellmanParameters Method
Namespace: Rebex.Net.Servers.Core
Assembly: Rebex.FileServer.dll (version 7.0.9448)
GetDiffieHellmanParameters(Int32)
Gets one of Diffie-Hellman parameters corresponding to the specified key size. Only used by server-side SSH.
Declaration
public DiffieHellmanParameters GetDiffieHellmanParameters(int keySize)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | keySize | Key size. |
Returns
| Type | Description |
|---|---|
| DiffieHellmanParameters | Diffie-Hellman parameters. |
Remarks
If no parameters are found in the cache, they are generated. This can be quite slow for large key sizes.