Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | trad_pkware |
Functions | |
static int | decrypt_header (zip_source_t *, struct trad_pkware *) |
static zip_int64_t | pkware_decrypt (zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t) |
static struct trad_pkware * | trad_pkware_new (const char *password, zip_error_t *error) |
static void | trad_pkware_free (struct trad_pkware *) |
zip_source_t * | zip_source_pkware_decode (zip_t *za, zip_source_t *src, zip_uint16_t em, int flags, const char *password) |
|
static |
Definition at line 81 of file zip_source_pkware_decode.c.
References _zip_error_set_from_source(), _zip_pkware_decrypt(), _zip_u2d_time(), zip_stat::crc, ctx::error, header, zip_stat::mtime, n, ok, src, zip_stat::valid, ZIP_CRYPTO_PKWARE_HEADERLEN, ZIP_ER_EOF, ZIP_ER_WRONGPASSWD, zip_error_set(), zip_source_read(), zip_source_stat(), ZIP_STAT_CRC, and ZIP_STAT_MTIME.
Referenced by pkware_decrypt().
|
static |
Definition at line 133 of file zip_source_pkware_decode.c.
References _zip_error_set_from_source(), _zip_pkware_decrypt(), _zip_pkware_keys_reset(), cmd, zip_stat::comp_size, decrypt_header(), zip_stat::encryption_method, ctx::error, len, n, NULL, src, trad_pkware_free(), zip_stat::valid, ZIP_CRYPTO_PKWARE_HEADERLEN, ZIP_EM_NONE, ZIP_ER_INVAL, zip_error_set(), zip_error_to_data(), ZIP_SOURCE_CLOSE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, zip_source_make_command_bitmap(), ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, zip_source_read(), ZIP_SOURCE_STAT, ZIP_SOURCE_SUPPORTS, ZIP_STAT_COMP_SIZE, and ZIP_STAT_ENCRYPTION_METHOD.
Referenced by zip_source_pkware_decode().
|
static |
Definition at line 213 of file zip_source_pkware_decode.c.
Referenced by pkware_decrypt(), and zip_source_pkware_decode().
|
static |
Definition at line 192 of file zip_source_pkware_decode.c.
References ctx::error, error(), free(), malloc(), NULL, trad_pkware::password, strdup(), ZIP_ER_MEMORY, zip_error_init(), and zip_error_set().
Referenced by zip_source_pkware_decode().
zip_source_t* zip_source_pkware_decode | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_uint16_t | em, | ||
int | flags, | ||
const char * | password | ||
) |
Definition at line 54 of file zip_source_pkware_decode.c.
References zip::error, flags, NULL, trad_pkware::password, pkware_decrypt(), s2, src, trad_pkware_free(), trad_pkware_new(), za, ZIP_CODEC_ENCODE, ZIP_EM_TRAD_PKWARE, ZIP_ER_ENCRNOTSUPP, ZIP_ER_INVAL, zip_error_set(), and zip_source_layered().
Referenced by _zip_get_encryption_implementation().