Discuss this help topic in SecureBlackbox Forum
Signs the input data with certificate's private key.
Declaration
Parameters
Return value
Returns True if the signature is successfully written to OutBuffer, and False if OutBuffer is too small.
In both cases, the OutSize parameter value is set to the actual size of signature length.
Description
This method causes TElX509CertificateEx object to sign the data contained in the InBuffer with its private key.
TElX509CertificateEx object should contain the private key corresponding to this certificate. If private key is absent, the EElCertificateException is raised.
If Detached parameter is set to True, the so-called detached signature is created.
Detached signature file does not contain the original message itself, so the original message has to be transported along with its signature. If the Detached parameter is False, the original message is included in signature file.
By default the certificates, used for signing, are included into signature. Then, when the Verify method is called,
these certificates are used in verification.
This can confuse, since Verify method is called for one certificate, and instead other certificates are used.
To avoid this, set IncludeCertificates to False.