Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | trad_pkware |
Functions | |
static int | encrypt_header (zip_source_t *, struct trad_pkware *) |
static zip_int64_t | pkware_encrypt (zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t) |
static void | trad_pkware_free (struct trad_pkware *) |
static struct trad_pkware * | trad_pkware_new (const char *password, zip_error_t *error) |
zip_source_t * | zip_source_pkware_encode (zip_t *za, zip_source_t *src, zip_uint16_t em, int flags, const char *password) |
|
static |
Definition at line 83 of file zip_source_pkware_encode.c.
References _zip_buffer_data(), _zip_buffer_free(), _zip_buffer_new(), _zip_error_set_from_source(), _zip_pkware_encrypt(), _zip_u2d_time(), ctx::error, header, zip_stat::mtime, NULL, src, ZIP_CRYPTO_PKWARE_HEADERLEN, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, zip_error_set(), zip_secure_random(), and zip_source_stat().
Referenced by pkware_encrypt().
|
static |
Definition at line 119 of file zip_source_pkware_encode.c.
References _zip_buffer_eof(), _zip_buffer_free(), _zip_buffer_read(), _zip_error_set_from_source(), _zip_pkware_encrypt(), _zip_pkware_keys_reset(), cmd, zip_stat::comp_size, encrypt_header(), zip_stat::encryption_method, ctx::error, length, n, NULL, src, trad_pkware_free(), zip_stat::valid, zip_file_attributes::valid, zip_file_attributes::version_needed, ZIP_CRYPTO_PKWARE_HEADERLEN, ZIP_EM_TRAD_PKWARE, ZIP_ER_INVAL, zip_error_set(), zip_error_to_data(), ZIP_FILE_ATTRIBUTES_VERSION_NEEDED, ZIP_SOURCE_CLOSE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, ZIP_SOURCE_GET_FILE_ATTRIBUTES, 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_encode().
|
static |
Definition at line 240 of file zip_source_pkware_encode.c.
References _zip_buffer_free(), ctx::error, free(), NULL, and zip_error_fini().
Referenced by pkware_encrypt(), and zip_source_pkware_encode().
|
static |
Definition at line 219 of file zip_source_pkware_encode.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_encode().
zip_source_t* zip_source_pkware_encode | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_uint16_t | em, | ||
int | flags, | ||
const char * | password | ||
) |
Definition at line 56 of file zip_source_pkware_encode.c.
References zip::error, flags, NULL, trad_pkware::password, pkware_encrypt(), 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().