Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual

SILC Toolkit Reference Manual SILC Core Library SILC Authentication Interface SILC Channel Interface SILC Command Interface SILC ID Interface SILC ID Cache Interface SILC Modes SILC Notify Interface SILC Argument Interface SILC Private Message Interface Packet Protocol Interface SILC Math Library SILC MP Interface SILC Math Interface SILC SFTP Library SILC SFTP Interface SFTP Filesystems Interface SILC Utility Library SILC Buffer Interface SILC Buffer Format Interface SILC Hash Table Interface SILC Logging Interface SILC Memory Interface SILC Mutex Interface SILC Thread Interface SILC Network Interface SILC Schedule Interface SILC Socket Interface SILC Protocol Interface SILC Config Interface SILC File Util Interface SILC Util Interface SILC List Interface SILC Dynamic List Interface SILC Zip API SILC Key Exchange Library SILC SKE Interface SKE Status Types SKE Diffie Hellman Groups SKE Payloads SILC Client Library Using SILC Client Library Client Library Interface SILC Crypto Library Introduction to SILC RNG SILC RNG Interface SILC Cipher API SILC Hash API SILC HMAC API SILC PKCS API Resource Links SILC Project Website SILC Protocol Documentation SILC White Paper SILC FAQ
Function silc_channel_message_payload_encode SYNOPSIS
        SilcBuffer silc_channel_message_payload_encode(SilcUInt16 flags,
                                                       SilcUInt16 data_len,
                                                       const unsigned char *data,
                                                       SilcUInt16 iv_len,
                                                       unsigned char *iv,
                                                       SilcCipher cipher,
                                                       SilcHmac hmac);
DESCRIPTION
        Encodes channel message payload into a buffer and returns it. This
        is used to add channel message payload into a packet. As the channel
        payload is encrypted separately from other parts of the packet padding
        must be applied to the payload. The function generates the padding
        automatically from random data.  The `cipher' is the cipher used
        encrypt the payload and `hmac' is used to compute the MAC for the
        payload.
SilcChannelAPI SilcChannelPayload SilcChannelMessagePayload SilcChannelKeyPayload SilcMessageFlags silc_channel_payload_parse silc_channel_payload_parse_list silc_channel_payload_encode silc_channel_payload_free silc_channel_payload_list_free silc_channel_get_name silc_channel_get_id silc_channel_get_id_parse silc_channel_get_mode silc_channel_message_payload_decrypt silc_channel_message_payload_parse silc_channel_message_payload_encode silc_channel_message_payload_free silc_channel_message_get_flags silc_channel_message_get_data silc_channel_message_get_mac silc_channel_message_get_iv silc_channel_key_payload_parse silc_channel_key_payload_encode silc_channel_key_payload_free silc_channel_key_get_id silc_channel_key_get_cipher silc_channel_key_get_key

Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual