CryptoManager.BeginEncrypting
Syntax variant: Data in return value
Syntax:
Parameters:
<NotifyDescription> (required)
Contains a description of the procedure that will be called upon completing data encryption with the following parameters:
- <SignedData> - encrypted data of the type BinaryData.
- <AdditionalParameters> - value specified when the NotifyDescription object was created.
<SourceData> (required)
Source data for encryption.
Data can be located in a file (in this case the name of file is specified) or represented as BinaryData.
<Recipients> (required)
The parameter can contain one certificate or an array of certificates.
Only recipients from the specified list (the recipients who have transferred certificates) will be able to decrypt the data using their private keys.
Description of method variant:
The format of encrypted data is PKCS#7.
Uses the algorithm, specified in property EncryptAlgorithm.
After completion of encryption a procedure specified in the NotifyDescription parameter is called..
The procedure stated in parameter NotifyDescription must contain the parameters:
- <EncryptedData> - encrypted data of the type BinaryData.
- <AdditionalParameters>.
<AdditionalParameters>.
Syntax variant: Save data to a file
Syntax:
Parameters:
<NotifyDescription> (required)
Contains a description of the procedure that will be called upon completing data encryption with the following parameters:
- <FileName> - name of file, to which the data is put.
- <AdditionalParameters> - value specified when the NotifyDescription object was created.
<SourceData> (required)
Source data for encryption.
Data can be located in a file (in this case the name of file is specified) or represented as BinaryData.
<OutputData> (required)
Name of file, to which the encrypted data is downloaded.
<Recipients> (required)
The parameter can contain one certificate or an array of certificate objects.
Only recipients from the specified list (the recipients who have transferred certificates) will be able to decrypt the data using their private keys.
Description of method variant:
Description:
The format of encrypted data is PKCS#7.
Uses the algorithm, specified in property EncryptAlgorithm.
After encryption is completed, the procedure with a name specified in NotifyDescription is called.
Availability:
See also: