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) (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), (Byte)t^(c)) |
|
◆ CRC32
#define CRC32 |
( |
|
c, |
|
|
|
b |
|
) |
| ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) |
◆ zdecode
◆ zencode
◆ decrypt_byte()
Definition at line 35 of file crypt.h.
36{
38
39
40
43 return (
int)(((
temp * (
temp ^ 1)) >> 8) & 0xff);
44}
static unsigned(__cdecl *hash_bstr)(bstr_t s)
◆ init_keys()
Definition at line 66 of file crypt.h.
67{
68 *(pkeys+0) = 305419896L;
69 *(pkeys+1) = 591751049L;
70 *(pkeys+2) = 878082192L;
71 while (*passwd != '\0') {
73 passwd++;
74 }
75}
static int update_keys(unsigned long *pkeys, const z_crc_t *pcrc_32_tab, int c)
◆ update_keys()
Definition at line 49 of file crypt.h.
50{
51 (*(pkeys+0)) =
CRC32((*(pkeys+0)),
c);
52 (*(pkeys+1)) += (*(pkeys+0)) & 0xff;
53 (*(pkeys+1)) = (*(pkeys+1)) * 134775813L + 1;
54 {
55 register int keyshift = (
int)((*(pkeys+1)) >> 24);
56 (*(pkeys+2)) =
CRC32((*(pkeys+2)), keyshift);
57 }
59}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by init_keys().