Function silc_message_signed_payload_encode
SYNOPSIS
SilcBuffer
silc_message_signed_payload_encode(const unsigned char *message_payload,
SilcUInt32 message_payload_len,
SilcPublicKey public_key,
SilcPrivateKey private_key,
bool include_public_key);
DESCRIPTION
Encodes the SILC_MESSAGE_FLAG_SIGNED Payload and computes the
digital signature. The `message_payload' is the message data that
is used in the signature computation. The encoding of the buffer
is specified in the SILC protocol. If `include_public_key' is
TRUE then the public key included in the payload. The `private_key'
is used to produce the signature. This function returns the encoded
payload with the signature or NULL on error. Caller must free the
returned buffer.
|