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
CryptoGenerateAsymmetricKeyPairRTS_IEC_RESULTResult of the operation
Input
hAlgoRTS_IEC_HANDLEHandle to the algorithm.
ui32KeyLenUDINTLenght of the key in bytes. May be omitted on ECC keys.
pKeyPairPOINTER TO RtsCryptoKey
The generated key pair. Can be used for public or private key operations.
xPrivateKeyExportableBOOLDefine if the private key should be exportable using CrpyotExportAsymmetricKey