Click or drag to resize

RsaMakeKeys(String, String, Int32, RsaPublicExponent, Int32, String, RsaPbeOptions, Boolean, Byte) Method

Note: This API is now obsolete.

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

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
[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,
	RsaPublicExponent exponent,
	int iterCount,
	string password,
	RsaPbeOptions cryptOption,
	bool showProgress = false,
	byte[] seedBytes = null
)

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  RsaPublicExponent
Exponent (Fermat Prime)
iterCount  Int32
Iteration count for encrypted private key
password  String
Password string for encrypted private key
cryptOption  RsaPbeOptions
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