Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

AsymmetricKeyAlgorithm.GenerateKey Method

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

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.

In This Article
  • GenerateKey(AsymmetricKeyAlgorithmId, Int32)
  • GenerateKey(AsymmetricKeyAlgorithmId, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies