SILC_PACKET_PADLEN
NAME
#define SILC_PACKET_PADLEN ...
DESCRIPTION
Calculates the length of the padding in the packet. This is used
by various library routines to determine needed padding length.
SOURCE
#define SILC_PACKET_PADLEN(__packetlen, __blocklen, __padlen) \
do { \
__padlen = (SILC_PACKET_DEFAULT_PADLEN - (__packetlen) % \
((__blocklen) ? (__blocklen) : SILC_PACKET_DEFAULT_PADLEN)); \
if (__padlen < 8) \
__padlen += ((__blocklen) ? (__blocklen) : SILC_PACKET_DEFAULT_PADLEN); \
} while(0)
|