Creates new RSA key.
Unit
Syntax
ParametersAKeyBitSize [in, opt] Size of new key in bits. Default is 4096. Minimum is 384. Maximum is 16384. Must be a factor of 8.
Return valueGenerated RSA key.
Delete this key by using RSADestroyKey function.
RemarksThis function generates a new RSA key (public/private keys pair). The returned key must be deleted by RSADestroyKey function once you have finished working with it.
Resulting key may be used for encryption using RSAEncrypt function or for digital signature using RSASign function.
Resulting key may be exported by using RSASavePublicKey and RSASavePrivateKey functions.
You may import previosly created key instead of generating new key. Use RSALoadPublicKey and/or RSALoadPrivateKey functions.
RSA is one of the first practical public-key cryptosystems and is widely used for secure data transmission. RSA is a relatively slow algorithm, and because of this it is less commonly used to directly encrypt user data. More often, RSA passes encrypted shared keys for symmetric key cryptography which in turn can perform bulk encryption-decryption operations at much higher speed.
See also
|