|
LMMS
|
Macros | |
| #define | ZCRYPT_INTERNAL |
| #define | GLOBAL(g) |
| #define | CRY_CRC_TAB CRC_32_TAB |
Functions | |
| local int testp | OF ((__GPRO__ ZCONST uch *h)) |
| local int testkey | OF ((__GPRO__ ZCONST uch *h, ZCONST char *key)) |
| int | decrypt_byte (__G) |
| int | update_keys (__G__ c) __GDEF int c |
| GLOBAL (keys[1]) = 591751049L | |
| GLOBAL (keys[2]) = 878082192L | |
| void | init_keys (__G__ passwd) __GDEF ZCONST char *passwd |
| int | decrypt (__G__ passwrd) __GDEF ZCONST char *passwrd |
| Trace ((stdout, "\n[incnt = %d]: ", GLOBAL(incnt))) | |
| GLOBAL (pInfo->encrypted) = TRUE | |
| defer_leftover_input (__G) | |
| for (n=0;n< RAND_HEAD_LEN;n++) | |
| undefer_input (__G) | |
| if (GLOBAL(newzip)) | |
| if (GLOBAL(key)) | |
| else | if ((GLOBAL(key)=(char *) malloc(IZ_PWLEN+1))==(char *) NULL) |
| while (n > 0) | |
| local int | testp (__G__ h) __GDEF ZCONST uch *h |
| if (r !=0) | |
| local int | testkey (__G__ h, key) __GDEF ZCONST uch *h |
| memcpy (hh, h, RAND_HEAD_LEN) | |
| Trace ((stdout, "\n lrec.crc= %08lx crec.crc= %08lx pInfo->ExtLocHdr= %s\n", GLOBAL(lrec.crc32), GLOBAL(pInfo->crc), GLOBAL(pInfo->ExtLocHdr) ? "true":"false")) | |
| Trace ((stdout, " incnt = %d unzip offset into zipfile = %ld\n", GLOBAL(incnt), GLOBAL(cur_zipfile_bufstart)+(GLOBAL(inptr) -GLOBAL(inbuf)))) | |
| Trace ((stdout, " b = %02x (crc >> 24) = %02x (lrec.time >> 8) = %02x\n", b,(ush)(GLOBAL(lrec.crc32) > > 24),((ush) GLOBAL(lrec.last_mod_dos_datetime) > > 8) &0xff)) | |
Variables | |
| return | c |
| while | passwd |
| int | n |
| int | r = testkey(__G__ h, GLOBAL(key)) |
| uch | h [RAND_HEAD_LEN] |
| return | PK_WARN |
| char * | key_translated |
| ZCONST char * | key |
| uch * | p |
| uch | hh [RAND_HEAD_LEN] |
| b = hh[RAND_HEAD_LEN-1] | |
| #define CRY_CRC_TAB CRC_32_TAB |
| #define ZCRYPT_INTERNAL |
| defer_leftover_input | ( | __G | ) |
| for | ( | ) |
| GLOBAL | ( | keys | [1] | ) | = 591751049L |
| GLOBAL | ( | keys | [2] | ) | = 878082192L |
| GLOBAL | ( | pInfo-> | encrypted | ) | = TRUE |
| if | ( | GLOBAL(newzip) | ) |
| if | ( | r ! | = 0 | ) |
| init_keys | ( | __G__ | passwd | ) |
| memcpy | ( | hh | , |
| h | , | ||
| RAND_HEAD_LEN | ) |
| Trace | ( | (stdout, " b = %02x (crc >> 24) = %02x (lrec.time >> 8) = %02x\n", b,(ush)(GLOBAL(lrec.crc32) > > 24),((ush) GLOBAL(lrec.last_mod_dos_datetime) > > 8) &0xff) | ) |
| Trace | ( | (stdout, " incnt = %d unzip offset into zipfile = %ld\n", GLOBAL(incnt), GLOBAL(cur_zipfile_bufstart)+(GLOBAL(inptr) -GLOBAL(inbuf))) | ) |
| Trace | ( | (stdout, "\n lrec.crc= %08lx crec.crc= %08lx pInfo->ExtLocHdr= %s\n", GLOBAL(lrec.crc32), GLOBAL(pInfo->crc), GLOBAL(pInfo->ExtLocHdr) ? "true":"false") | ) |
| Trace | ( | (stdout, "\n[incnt = %d]: ", GLOBAL(incnt)) | ) |
| undefer_input | ( | __G | ) |
| while | ( | n | , |
| 0 | ) |
| long b = hh[RAND_HEAD_LEN-1] |
| return c |
| uch h[RAND_HEAD_LEN] |
| else hh |
| ZCONST char* key |
| unsigned n |
| uch* p |
| passwd |
| return PK_WARN |