sign


Description:

[ Version ( since = "3.0" ) ]
public async bool sign (string userid, CipherHash hash, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error

Asynchronously converts the (unsigned) part ipart into a new self-contained MIME part opart.

This may be a multipart/signed part, or a simple part for enveloped types.

When the operation is finished, callback will be called. You can then call sign.end to get the result of the operation.

Parameters:

this

a CipherContext

userid

a private key to use to sign the stream

hash

preferred Message-Integrity-Check hash algorithm

ipart

input MimePart

opart

output MimePart

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function