Go to the source code of this file.
|
| #define | CRC32(c, b) ((*(pcrc_32_tab + (((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) |
| |
| #define | zdecode(pkeys, pcrc_32_tab, c) (update_keys(pkeys, pcrc_32_tab, c ^= decrypt_byte(pkeys, pcrc_32_tab))) |
| |
| #define | zencode(pkeys, pcrc_32_tab, c, t) |
| |
◆ CRC32
| #define CRC32 |
( |
|
c, |
|
|
|
b |
|
) |
| ((*(pcrc_32_tab + (((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) |
◆ zdecode
◆ zencode
| #define zencode |
( |
|
pkeys, |
|
|
|
pcrc_32_tab, |
|
|
|
c, |
|
|
|
t |
|
) |
| |
Value:
t ^ (c))
static int decrypt_byte(unsigned long *pkeys, const z_crc_t FAR *pcrc_32_tab)
static int update_keys(unsigned long *pkeys, const z_crc_t FAR *pcrc_32_tab, int c)
Definition at line 83 of file crypt.h.
◆ decrypt_byte()
| static int decrypt_byte |
( |
unsigned long * |
pkeys, |
|
|
const z_crc_t FAR * |
pcrc_32_tab |
|
) |
| |
|
static |
◆ init_keys()
| static void init_keys |
( |
const char * |
passwd, |
|
|
unsigned long * |
pkeys, |
|
|
const z_crc_t FAR * |
pcrc_32_tab |
|
) |
| |
|
static |
◆ update_keys()
| static int update_keys |
( |
unsigned long * |
pkeys, |
|
|
const z_crc_t FAR * |
pcrc_32_tab, |
|
|
int |
c |
|
) |
| |
|
static |