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

SILC Toolkit Reference Manual SILC Core Library SILC Authentication Interface SILC Message Interface SILC Channel Interface SILC Command Interface SILC Notify Interface SILC Status Types SILC Modes SILC ID Interface SILC ID Cache Interface SILC Argument Interface SILC Attributes 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 Basic SILC Types 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 String Util Interface SILC Util Interface SILC List Interface SILC Dynamic List Interface SILC VCard Interface SILC Application Utilities SILC Key Exchange Library SILC SKE Interface SKE Status Types SKE Diffie Hellman Groups SKE Payloads SILC Client Library Using SILC Client Library Tutorial Arguments for command_reply Client Operation Arguments for notify Client Operation Client Library Interface Reference SILC Crypto Library Introduction to SILC RNG SILC RNG Interface SILC Cipher API SILC PKCS API SILC Hash Interface SILC HMAC Interface Resource Links SILC Project Website SILC Protocol Documentation SILC White Paper SILC FAQ
SILC_GET32_LSB NAME
        #define SILC_GET32_LSB ...
DESCRIPTION
        Return four 8-bit bytes, least significant bytes first.
SOURCE
        #define SILC_GET32_LSB(l, cp)                           \
        do {                                                    \
                (l) = ((SilcUInt32)(SilcUInt8)(cp)[0])          \
                    | ((SilcUInt32)(SilcUInt8)(cp)[1] << 8)     \
                    | ((SilcUInt32)(SilcUInt8)(cp)[2] << 16)    \
                    | ((SilcUInt32)(SilcUInt8)(cp)[3] << 24);   \
        } while(0)

        /* Same as upper but XOR the result always. Special purpose macro. */
        #define SILC_GET32_X_LSB(l, cp)                         \
                (l) ^= ((SilcUInt32)(SilcUInt8)(cp)[0])         \
                    | ((SilcUInt32)(SilcUInt8)(cp)[1] << 8)     \
                    | ((SilcUInt32)(SilcUInt8)(cp)[2] << 16)    \
                    | ((SilcUInt32)(SilcUInt8)(cp)[3] << 24)
SILC Types TRUE FALSE bool SilcUInt8 SilcInt8 SilcUInt16 SilcInt16 SilcUInt32 SilcInt32 SilcUInt64 SilcInt64 SILC_GET16_MSB SILC_GET32_MSB SILC_GET64_MSB SILC_GET16_LSB SILC_GET32_LSB SILC_PUT16_MSB SILC_PUT32_MSB SILC_PUT64_MSB SILC_PUT16_LSB SILC_PUT32_LSB SILC_SWAB_16 SILC_SWAB_32

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