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
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.
 
     
     
     
     
    