CryptoGenerateAsymmetricKeyPair
(FUN)
FUNCTION CryptoGenerateAsymmetricKeyPair : RTS_IEC_RESULT
Generate an asymmetric key pair that can be used by the specivied algorithm.
- InOut:
Scope
Name
Type
Comment
Return
CryptoGenerateAsymmetricKeyPair
RTS_IEC_RESULT
Result of the operation
Input
hAlgo
RTS_IEC_HANDLE
Handle to the algorithm.
ui32KeyLen
UDINT
Lenght of the key in bytes. May be omitted on ECC keys.
pKeyPair
POINTER TO RtsCryptoKey
The generated key pair. Can be used for public or private key operations.
xPrivateKeyExportable
BOOL
Define if the private key should be exportable using CrpyotExportAsymmetricKey