Generate the asymmetric keypair
To generate the keypair, use Generate() method of the corresponding keypair class:
You need to specify the key length in bits. The more bits the key includes, the stronger encryption is provided by the key. Minimal value which makes strong encryption is 1024 bits. Maximum is defined by the standard. For DSS, the length of the key must be less than 3072 bits (newer versions of the standard remove this limit, however not all software supports this).
The resulting key length can be a bith higher than the requested one (for example, 1032 bits instead of 1024 bits).