sign_sync


Description:

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

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.

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

cancellable

optional Cancellable object, or null

Returns:

true on success, false on error