Generates a private key for the specified asymmetric algorithm with of the specified key size.

Namespace:  Rebex.Security.Cryptography
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Sub GenerateKey ( _
	algorithm As AsymmetricKeyAlgorithmId, _
	keySize As Integer _
)
C#
public void GenerateKey(
	AsymmetricKeyAlgorithmId algorithm,
	int keySize
)

Parameters

algorithm
Type: Rebex.Security.Cryptography..::..AsymmetricKeyAlgorithmId
Key algorithm.
keySize
Type: System..::..Int32
Key size. Specify 0 to use default key size.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also