Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | winzip_aes |
Functions | |
static int | encrypt_header (zip_source_t *src, struct winzip_aes *ctx) |
static void | winzip_aes_free (struct winzip_aes *) |
static zip_int64_t | winzip_aes_encrypt (zip_source_t *src, void *ud, void *data, zip_uint64_t len, zip_source_cmd_t cmd) |
static struct winzip_aes * | winzip_aes_new (zip_uint16_t encryption_method, const char *password, zip_error_t *error) |
zip_source_t * | zip_source_winzip_aes_encode (zip_t *za, zip_source_t *src, zip_uint16_t encryption_method, int flags, const char *password) |
|
static |
Definition at line 84 of file zip_source_winzip_aes_encode.c.
References _zip_buffer_new(), _zip_winzip_aes_free(), _zip_winzip_aes_new(), ctx::error, NULL, SALT_LENGTH, WINZIP_AES_PASSWORD_VERIFY_LENGTH, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, zip_error_set(), and zip_secure_random().
Referenced by winzip_aes_encrypt().
|
static |
Definition at line 107 of file zip_source_winzip_aes_encode.c.
References _zip_buffer_eof(), _zip_buffer_free(), _zip_buffer_new(), _zip_buffer_read(), _zip_error_set_from_source(), _zip_winzip_aes_encrypt(), _zip_winzip_aes_finish(), _zip_winzip_aes_free(), cmd, zip_stat::comp_size, winzip_aes::data, encrypt_header(), zip_stat::encryption_method, ctx::error, HMAC_LENGTH, length, NULL, SALT_LENGTH, src, zip_stat::valid, zip_file_attributes::valid, zip_file_attributes::version_needed, winzip_aes_free(), ZIP_ER_INTERNAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, 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_winzip_aes_encode().
|
static |
Definition at line 217 of file zip_source_winzip_aes_encode.c.
References _zip_buffer_free(), _zip_crypto_clear, _zip_winzip_aes_free(), ctx::error, free(), NULL, and zip_error_fini().
Referenced by winzip_aes_encrypt(), and zip_source_winzip_aes_encode().
|
static |
Definition at line 232 of file zip_source_winzip_aes_encode.c.
References winzip_aes::encryption_method, ctx::error, error(), free(), malloc(), NULL, winzip_aes::password, strdup(), ZIP_ER_MEMORY, zip_error_init(), and zip_error_set().
Referenced by zip_source_winzip_aes_encode().
zip_source_t* zip_source_winzip_aes_encode | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_uint16_t | encryption_method, | ||
int | flags, | ||
const char * | password | ||
) |
Definition at line 61 of file zip_source_winzip_aes_encode.c.
References winzip_aes::encryption_method, zip::error, NULL, winzip_aes::password, s2, src, winzip_aes_encrypt(), winzip_aes_free(), winzip_aes_new(), za, ZIP_EM_AES_128, ZIP_EM_AES_192, ZIP_EM_AES_256, ZIP_ER_INVAL, zip_error_set(), and zip_source_layered().
Referenced by _zip_get_encryption_implementation().