Discuss this help topic in SecureBlackbox Forum
Signs the block of data.
Declaration
Parameters
Return value
0 if the signing process was completed successfully, and an error code otherwise.
Possible values:
|
Description
Use this method to sign blocks of data. Block of data is signed using each certificate from
CertStorage,
which has the corresponding private key.
When Detached parameter is false, the signature is merged with data and the resulting block is returned. If Detached is true, only the signature is returned.
Unless IncludeCertificates property is set to false, all certificates from storage are included into the signature. If IncludeCertificates is false, then the signature contains only certificate IDs.
Note, that some certificates from storage may not have the corresponding private keys. These certificates are included in signed message too. This is done to create certificate chains and make validation of signing certificate easier.