Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
zip_uint8_t* _zip_buffer_data | ( | zip_buffer_t * | buffer | ) |
Definition at line 40 of file zip_buffer.c.
Referenced by _zip_cdir_write(), _zip_ef_utf8(), _zip_find_central_dir(), _zip_read_cdir(), encrypt_header(), and write_data_descriptor().
bool _zip_buffer_eof | ( | zip_buffer_t * | buffer | ) |
Definition at line 60 of file zip_buffer.c.
References buffer::offset, and buffer::size.
Referenced by _zip_dirent_read(), _zip_dirent_size(), _zip_ef_parse(), _zip_read_cdir(), _zip_read_local_ef(), pkware_encrypt(), and winzip_aes_encrypt().
void _zip_buffer_free | ( | zip_buffer_t * | buffer | ) |
Definition at line 46 of file zip_buffer.c.
Referenced by _zip_buffer_new_from_source(), _zip_cdir_write(), _zip_dirent_process_ef_utf_8(), _zip_dirent_process_winzip_aes(), _zip_dirent_read(), _zip_dirent_size(), _zip_dirent_write(), _zip_ef_parse(), _zip_ef_utf8(), _zip_ef_write(), _zip_find_central_dir(), _zip_read_cdir(), _zip_read_eocd64(), _zip_read_local_ef(), encrypt_header(), input(), pkware_encrypt(), trad_pkware_free(), winzip_aes_encrypt(), winzip_aes_free(), and write_data_descriptor().
zip_uint8_t* _zip_buffer_get | ( | zip_buffer_t * | buffer, |
zip_uint64_t | length | ||
) |
Definition at line 66 of file zip_buffer.c.
References _zip_buffer_peek(), length, NULL, and buffer::offset.
Referenced by _zip_buffer_get_16(), _zip_buffer_get_32(), _zip_buffer_get_64(), _zip_buffer_get_8(), _zip_buffer_put(), _zip_buffer_put_16(), _zip_buffer_put_32(), _zip_buffer_put_64(), _zip_buffer_put_8(), _zip_buffer_read(), _zip_dirent_process_ef_utf_8(), _zip_dirent_process_winzip_aes(), _zip_dirent_read(), _zip_ef_parse(), _zip_find_central_dir(), _zip_read_cdir(), _zip_read_data(), _zip_read_eocd(), and _zip_read_eocd64().
zip_uint16_t _zip_buffer_get_16 | ( | zip_buffer_t * | buffer | ) |
Definition at line 80 of file zip_buffer.c.
References _zip_buffer_get(), and NULL.
Referenced by _zip_dirent_process_winzip_aes(), _zip_dirent_read(), _zip_dirent_size(), _zip_ef_parse(), _zip_read_cdir(), _zip_read_eocd(), _zip_read_eocd64(), and _zip_read_local_ef().
zip_uint32_t _zip_buffer_get_32 | ( | zip_buffer_t * | buffer | ) |
Definition at line 92 of file zip_buffer.c.
References _zip_buffer_get(), and NULL.
Referenced by _zip_dirent_process_ef_utf_8(), _zip_dirent_read(), _zip_read_eocd(), and _zip_read_eocd64().
zip_uint64_t _zip_buffer_get_64 | ( | zip_buffer_t * | buffer | ) |
Definition at line 104 of file zip_buffer.c.
References _zip_buffer_get(), and NULL.
Referenced by _zip_dirent_read(), and _zip_read_eocd64().
zip_uint8_t _zip_buffer_get_8 | ( | zip_buffer_t * | buffer | ) |
Definition at line 116 of file zip_buffer.c.
References _zip_buffer_get(), and NULL.
Referenced by _zip_dirent_process_ef_utf_8(), and _zip_dirent_process_winzip_aes().
zip_uint64_t _zip_buffer_left | ( | zip_buffer_t * | buffer | ) |
Definition at line 128 of file zip_buffer.c.
References buffer::offset, and buffer::size.
Referenced by _zip_buffer_read(), _zip_dirent_process_ef_utf_8(), _zip_dirent_read(), _zip_ef_parse(), _zip_find_central_dir(), _zip_read_cdir(), and _zip_read_eocd().
zip_buffer_t* _zip_buffer_new | ( | zip_uint8_t * | data, |
zip_uint64_t | size | ||
) |
Definition at line 146 of file zip_buffer.c.
References free(), malloc(), NULL, buffer::offset, and buffer::size.
Referenced by _zip_buffer_new_from_source(), _zip_cdir_write(), _zip_dirent_process_ef_utf_8(), _zip_dirent_process_winzip_aes(), _zip_dirent_read(), _zip_dirent_write(), _zip_ef_parse(), _zip_ef_utf8(), _zip_ef_write(), _zip_read_cdir(), encrypt_header(), input(), winzip_aes_encrypt(), and write_data_descriptor().
zip_buffer_t* _zip_buffer_new_from_source | ( | zip_source_t * | src, |
zip_uint64_t | size, | ||
zip_uint8_t * | buf, | ||
zip_error_t * | error | ||
) |
Definition at line 174 of file zip_buffer.c.
References _zip_buffer_free(), _zip_buffer_new(), _zip_read(), error(), NULL, src, ZIP_ER_MEMORY, and zip_error_set().
Referenced by _zip_dirent_read(), _zip_dirent_size(), _zip_find_central_dir(), _zip_read_eocd64(), and _zip_read_local_ef().
zip_uint64_t _zip_buffer_offset | ( | zip_buffer_t * | buffer | ) |
Definition at line 192 of file zip_buffer.c.
References buffer::offset.
Referenced by _zip_cdir_write(), _zip_dirent_write(), _zip_ef_utf8(), _zip_read_cdir(), _zip_read_eocd(), _zip_read_eocd64(), and write_data_descriptor().
bool _zip_buffer_ok | ( | zip_buffer_t * | buffer | ) |
Definition at line 198 of file zip_buffer.c.
Referenced by _zip_cdir_write(), _zip_dirent_read(), _zip_dirent_write(), _zip_ef_parse(), _zip_ef_utf8(), _zip_ef_write(), _zip_read_eocd64(), and write_data_descriptor().
zip_uint8_t* _zip_buffer_peek | ( | zip_buffer_t * | buffer, |
zip_uint64_t | length | ||
) |
Definition at line 204 of file zip_buffer.c.
References length, NULL, buffer::offset, and buffer::size.
Referenced by _zip_buffer_get().
int _zip_buffer_put | ( | zip_buffer_t * | buffer, |
const void * | src, | ||
size_t | length | ||
) |
Definition at line 217 of file zip_buffer.c.
References _zip_buffer_get(), dst, length, memcpy(), NULL, and src.
Referenced by _zip_cdir_write(), _zip_dirent_write(), _zip_ef_utf8(), and write_data_descriptor().
int _zip_buffer_put_16 | ( | zip_buffer_t * | buffer, |
zip_uint16_t | i | ||
) |
Definition at line 230 of file zip_buffer.c.
References _zip_buffer_get(), i, and NULL.
Referenced by _zip_cdir_write(), _zip_dirent_write(), and _zip_ef_write().
int _zip_buffer_put_32 | ( | zip_buffer_t * | buffer, |
zip_uint32_t | i | ||
) |
Definition at line 245 of file zip_buffer.c.
References _zip_buffer_get(), i, and NULL.
Referenced by _zip_cdir_write(), _zip_dirent_write(), _zip_ef_utf8(), and write_data_descriptor().
int _zip_buffer_put_64 | ( | zip_buffer_t * | buffer, |
zip_uint64_t | i | ||
) |
Definition at line 262 of file zip_buffer.c.
References _zip_buffer_get(), i, and NULL.
Referenced by _zip_cdir_write(), _zip_dirent_write(), input(), and write_data_descriptor().
int _zip_buffer_put_8 | ( | zip_buffer_t * | buffer, |
zip_uint8_t | i | ||
) |
Definition at line 283 of file zip_buffer.c.
References _zip_buffer_get(), i, and NULL.
Referenced by _zip_dirent_write(), and _zip_ef_utf8().
zip_uint64_t _zip_buffer_read | ( | zip_buffer_t * | buffer, |
zip_uint8_t * | data, | ||
zip_uint64_t | length | ||
) |
Definition at line 134 of file zip_buffer.c.
References _zip_buffer_get(), _zip_buffer_left(), length, and memcpy().
Referenced by pkware_encrypt(), and winzip_aes_encrypt().
int _zip_buffer_set_offset | ( | zip_buffer_t * | buffer, |
zip_uint64_t | offset | ||
) |
Definition at line 297 of file zip_buffer.c.
References buffer::offset, and buffer::size.
Referenced by _zip_buffer_skip(), _zip_dirent_read(), _zip_ef_write(), _zip_find_central_dir(), _zip_read_cdir(), and _zip_read_eocd64().
zip_uint64_t _zip_buffer_size | ( | zip_buffer_t * | buffer | ) |
Definition at line 322 of file zip_buffer.c.
References buffer::size.
Referenced by _zip_read_eocd64().
int _zip_buffer_skip | ( | zip_buffer_t * | buffer, |
zip_uint64_t | length | ||
) |
Definition at line 311 of file zip_buffer.c.
References _zip_buffer_set_offset(), length, and buffer::offset.
Referenced by _zip_dirent_read().