CryptoSignatureGenerate (FUN)

FUNCTION CryptoSignatureGenerate : RTS_IEC_RESULT

Sign the data using a specific message digest and the private key.

InOut:

Scope

Name

Type

Comment

Return

CryptoSignatureGenerate

RTS_IEC_RESULT

Result of the operation.

Input

hAlgo

RTS_IEC_HANDLE

Handle to the algorithm.

pData

POINTER TO RtsByteString

Data to be signed.

privateKey

RtsCryptoKey

Key to be used signing. Has to be a private key.

pSignature

POINTER TO RtsByteString

Calculated signature of the data.