SilcBuffer silc_private_message_payload_encode(SilcUInt16 flags, SilcUInt16 data_len, const unsigned char *data, SilcCipher cipher);
Encodes private message payload into a buffer and returns it. If the cipher is provided the packet is also encrypted here. It is provided if the private message private keys are used.