AsymmetricKeyAlgorithm.GenerateKey Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.8944)
GenerateKey(AsymmetricKeyAlgorithmId, Int32)
Generates a private key for the specified asymmetric algorithm with of the specified key size.
Declaration
public void GenerateKey(AsymmetricKeyAlgorithmId algorithm, int keySize)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricKeyAlgorithmId | algorithm | Key algorithm. |
Int32 | keySize | Key size. Specify 0 to use default key size. |
GenerateKey(AsymmetricKeyAlgorithmId, String)
Generates a private key for the specified asymmetric algorithm based on the specified curve.
Declaration
public void GenerateKey(AsymmetricKeyAlgorithmId algorithm, string curve)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricKeyAlgorithmId | algorithm | Key algorithm. |
String | curve | Curve name or OID. |