RSAMethods.CreateKeyPair Method

Tungsten Suite

RSAMethodsCreateKeyPair Method

Generates a public/private key pair

Namespace:  W.Encryption
Assembly:  Tungsten.Encryption (in Tungsten.Encryption.dll) Version: 2.0.2
Syntax
C#
public static void CreateKeyPair(
	int keySize,
	out RSAParameters privateKey,
	out RSAParameters publicKey
)

Parameters

keySize
Type: SystemInt32
The key size to use when creating the public and private keys
privateKey
Type: System.Security.CryptographyRSAParameters
The generated private key
publicKey
Type: System.Security.CryptographyRSAParameters
The generated public key

Return Value

Type: 
A newly created PublicPrivateKeyPair containing the public and private keys
See Also