CryptoManager.Sign
Syntax variant: Signature data in return value
Syntax:
Parameters:
<InitialData> (required)
Initial data to sign.
Data can be located in file (in this case the file name is specified) or represented as BinaryData.
<Certificate> (optional)
Used cryptography certificate.
If not specified, the store of personal certificates must contain exactly one certificate. Otherwise, an exception is generated.
Syntax variant: Signature data are saved to file
Syntax:
Parameters:
<InitialData> (required)
Initial data to sign.
Data can be located in file (in this case the file name is specified) or represented as BinaryData.
<OutputData> (required)
Name of file, to which the signed data is downloaded.
<Certificate> (optional)
Used cryptography certificate.
If not specified, the store of personal certificates must contain exactly one certificate. Otherwise, an exception is generated.
Description of method variant:
Returned value:
When saving signature to file returns Undefined.
Description:
Signature is created by algorithms, which are set by properties HashAlgorithm and SignAlgorithm.
Source file is not included in signature data.
The certificates can be included in signature data depending on the property IncludeCertificatesInSignature.
If the certificate is not indicated, the only installed personal certificate is used for the signature.
Availability:
Note:
It comes out error situation when certificate used for signature is not linked with the key container.
See also: