CryptoSys PKI Pro Manual

Rsa.MakeKeys(String, String, Int32, Rsa.PublicExponent, Int32, String, Rsa.PbeOptions, Boolean, Byte[]) Method

Generate an RSA public/private key pair [DEPRECATED].

Syntax

[C#]
[ObsoleteAttribute( "Use Rsa.MakeKeys( String, String, String, Int32, Rsa.PublicExponent, Rsa.PbeOptions, String, Rsa.Format, Boolean ) instead", false )]
public static int MakeKeys(
   string publicKeyFile,
   string privateKeyFile,
   int bits,
   Rsa.PublicExponent exponent,
   int iterCount,
   string password,
   Rsa.PbeOptions cryptOption,
   bool showProgress = false,
   byte[] seedBytes = null 
)
[VB]
<ObsoleteAttribute( "Use Rsa.MakeKeys( String, String, String, Int32, Rsa.PublicExponent, Rsa.PbeOptions, String, Rsa.Format, Boolean ) instead", false )>
Public Shared Function MakeKeys (
   publicKeyFile As String,
   privateKeyFile As String,
   bits As Integer,
   exponent As Rsa.PublicExponent,
   iterCount As Integer,
   password As String,
   cryptOption As Rsa.PbeOptions,
   Optional showProgress As Boolean = false,
   Optional seedBytes As Byte() = Nothing 
) As Integer

Parameters

publicKeyFile  String
Output filename for public key
privateKeyFile  String
Output filename for (encrypted) private key
bits  Int32
Required key modulus size in bits (min 96)
exponent  Rsa.PublicExponent
Exponent (Fermat Prime)
iterCount  Int32
Iteration count for encrypted private key
password  String
Password string for encrypted private key
cryptOption  Rsa.PbeOptions
Option to specify encryption algorithm for private key
showProgress  Boolean  (Optional)
Indicate progress in console
seedBytes  Byte  (Optional)
(optional) User-supplied-entropy in byte format

Return Value

Int32
Zero if successful or non-zero error code

See Also

VB6/C equivalent: RSA_MakeKeys

[Contents] [Index]

[PREV: Rsa.MakeKeys(String, String, Int32, Rsa.PublicExponent, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format, Boolean) Method...]   [Contents]   [Index]   
   [NEXT: Rsa.MakeKeys(String, String, String, Int32, Rsa.PublicExponent, Rsa.PbeOptions, String, Rsa.Format, Boolean) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.