Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | winzip_aes |
Functions | |
static int | decrypt_header (zip_source_t *src, struct winzip_aes *ctx) |
static void | winzip_aes_free (struct winzip_aes *) |
static zip_int64_t | winzip_aes_decrypt (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_decode (zip_t *za, zip_source_t *src, zip_uint16_t encryption_method, int flags, const char *password) |
static bool | verify_hmac (zip_source_t *src, struct winzip_aes *ctx) |
|
static |
Definition at line 102 of file zip_source_winzip_aes_decode.c.
References _zip_error_set_from_source(), _zip_winzip_aes_free(), _zip_winzip_aes_new(), ctx::error, header, n, NULL, SALT_LENGTH, src, WINZIP_AES_MAX_HEADER_LENGTH, WINZIP_AES_PASSWORD_VERIFY_LENGTH, ZIP_ER_EOF, ZIP_ER_WRONGPASSWD, zip_error_set(), and zip_source_read().
Referenced by winzip_aes_decrypt().
|
static |
Definition at line 133 of file zip_source_winzip_aes_decode.c.
References _zip_error_set_from_source(), _zip_winzip_aes_finish(), _zip_winzip_aes_free(), ctx::error, HMAC_LENGTH, NULL, SHA1_LENGTH, src, ZIP_ER_CRC, ZIP_ER_INTERNAL, zip_error_set(), and zip_source_read().
Referenced by winzip_aes_decrypt().
|
static |
Definition at line 157 of file zip_source_winzip_aes_decode.c.
References _zip_error_set_from_source(), _zip_winzip_aes_decrypt(), cmd, zip_stat::comp_size, winzip_aes::data, decrypt_header(), zip_stat::encryption_method, ctx::error, len, n, SALT_LENGTH, src, zip_stat::valid, verify_hmac(), winzip_aes_free(), ZIP_EM_NONE, ZIP_ER_INTERNAL, 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_winzip_aes_decode().
|
static |
Definition at line 231 of file zip_source_winzip_aes_decode.c.
References _zip_crypto_clear, _zip_winzip_aes_free(), ctx::error, free(), NULL, and zip_error_fini().
Referenced by winzip_aes_decrypt(), and zip_source_winzip_aes_decode().
|
static |
Definition at line 245 of file zip_source_winzip_aes_decode.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_decode().
zip_source_t* zip_source_winzip_aes_decode | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_uint16_t | encryption_method, | ||
int | flags, | ||
const char * | password | ||
) |
Definition at line 59 of file zip_source_winzip_aes_decode.c.
References _zip_error_set_from_source(), zip_stat::comp_size, winzip_aes::encryption_method, zip::error, flags, HMAC_LENGTH, NULL, winzip_aes::password, s2, SALT_LENGTH, src, zip_stat::valid, winzip_aes_decrypt(), winzip_aes_free(), winzip_aes_new(), WINZIP_AES_PASSWORD_VERIFY_LENGTH, za, ZIP_CODEC_ENCODE, ZIP_EM_AES_128, ZIP_EM_AES_192, ZIP_EM_AES_256, ZIP_ER_ENCRNOTSUPP, ZIP_ER_INVAL, ZIP_ER_OPNOTSUPP, zip_error_set(), zip_source_layered(), zip_source_stat(), and ZIP_STAT_COMP_SIZE.
Referenced by _zip_get_encryption_implementation().