win32crypt.CryptSignMessage

str = CryptSignMessage(SignPara, ToBeSigned , DetachedSignature )

Signs and encodes a message

Parameters

SignPara : PyCRYPT_SIGN_MESSAGE_PARA

Message signing parameters

ToBeSigned : (str,...)

Sequence of strings containing message data. Can only contain 1 string if DetachedSignature parm is False.

DetachedSignature=False : boolean

If True, only the signature itself is encoded in output msg.