|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
| #define | PKWARE_KEY0 305419896 |
| #define | PKWARE_KEY1 591751049 |
| #define | PKWARE_KEY2 878082192 |
Functions | |
| static void | update_keys (zip_pkware_keys_t *keys, zip_uint8_t b) |
| static zip_uint8_t | crypt_byte (zip_pkware_keys_t *keys) |
| void | _zip_pkware_keys_reset (zip_pkware_keys_t *keys) |
| void | _zip_pkware_encrypt (zip_pkware_keys_t *keys, zip_uint8_t *out, const zip_uint8_t *in, zip_uint64_t len) |
| void | _zip_pkware_decrypt (zip_pkware_keys_t *keys, zip_uint8_t *out, const zip_uint8_t *in, zip_uint64_t len) |
| #define PKWARE_KEY0 305419896 |
Definition at line 40 of file zip_pkware.c.
| #define PKWARE_KEY1 591751049 |
Definition at line 41 of file zip_pkware.c.
| #define PKWARE_KEY2 878082192 |
Definition at line 42 of file zip_pkware.c.
| void _zip_pkware_decrypt | ( | zip_pkware_keys_t * | keys, |
| zip_uint8_t * | out, | ||
| const zip_uint8_t * | in, | ||
| zip_uint64_t | len | ||
| ) |
Definition at line 95 of file zip_pkware.c.
References b, crypt_byte(), i, in, keys, len, NULL, out, autogen_x86imm::tmp, and update_keys().
Referenced by decrypt_header(), and pkware_decrypt().
| void _zip_pkware_encrypt | ( | zip_pkware_keys_t * | keys, |
| zip_uint8_t * | out, | ||
| const zip_uint8_t * | in, | ||
| zip_uint64_t | len | ||
| ) |
Definition at line 72 of file zip_pkware.c.
References b, crypt_byte(), i, in, keys, len, NULL, out, autogen_x86imm::tmp, and update_keys().
Referenced by encrypt_header(), and pkware_encrypt().
| void _zip_pkware_keys_reset | ( | zip_pkware_keys_t * | keys | ) |
Definition at line 64 of file zip_pkware.c.
References keys, PKWARE_KEY0, PKWARE_KEY1, and PKWARE_KEY2.
Referenced by pkware_decrypt(), and pkware_encrypt().
|
static |
Definition at line 55 of file zip_pkware.c.
References keys, and autogen_x86imm::tmp.
Referenced by _zip_pkware_decrypt(), and _zip_pkware_encrypt().
|
static |
Definition at line 46 of file zip_pkware.c.
References b, crc32(), and keys.
Referenced by _zip_pkware_decrypt(), and _zip_pkware_encrypt().