Share via


AsymmetricKeyAlgorithmProvider.CreateKeyPair(UInt32) Method

Definition

Creates a public/private key pair.

public:
 virtual CryptographicKey ^ CreateKeyPair(unsigned int keySize) = CreateKeyPair;
CryptographicKey CreateKeyPair(uint32_t const& keySize);
public CryptographicKey CreateKeyPair(uint keySize);
function createKeyPair(keySize)
Public Function CreateKeyPair (keySize As UInteger) As CryptographicKey

Parameters

keySize
UInt32

unsigned int

uint32_t

Size, in bits, of the key. Typical key sizes are 512, 1024, 2048, or 4096 bits.

Returns

Represents the asymmetric key pair.

Applies to