Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Aug 21, 2024
1 parent 4a9808a commit 246b79a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 9 additions & 9 deletions include/libevp/evp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok packed successfully;
* status == evp_result_status::error an error occurred during packing, message contains details;
* status == evp_result_status::failure an error occurred during packing, message contains details;
*/
LIBEVP_API evp_result pack(const dir_path_t& input_dir, const file_path_t& evp,
evp_filter filter = evp_filter::none);
Expand All @@ -58,7 +58,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok unpacked successfully;
* status == evp_result_status::error an error occurred during unpacking, message contains details;
* status == evp_result_status::failure an error occurred during unpacking, message contains details;
*/
LIBEVP_API evp_result unpack(const file_path_t& evp, const dir_path_t& output_dir);

Expand Down Expand Up @@ -94,7 +94,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok all files successfully validated;
* status == evp_result_status::error an error occurred, message contains details;
* status == evp_result_status::failure an error occurred, message contains details;
*/
LIBEVP_API evp_result validate_files(const file_path_t& evp, std::vector<evp_fd>* failed_fds = nullptr);

Expand All @@ -106,7 +106,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok got files successfully;
* status == evp_result_status::error an error occurred, message contains details;
* status == evp_result_status::failure an error occurred, message contains details;
*/
LIBEVP_API evp_result get_files(const file_path_t& evp, std::vector<evp_fd>& files);

Expand All @@ -119,7 +119,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok unpacked successfully;
* status == evp_result_status::error an error occurred during unpacking, message contains details;
* status == evp_result_status::failure an error occurred during unpacking, message contains details;
*/
LIBEVP_API evp_result get_file(const file_path_t& evp, const evp_fd& fd, std::vector<uint8_t>& buffer);

Expand All @@ -132,7 +132,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok unpacked successfully;
* status == evp_result_status::error an error occurred during unpacking, message contains details;
* status == evp_result_status::failure an error occurred during unpacking, message contains details;
*/
LIBEVP_API evp_result get_file(const file_path_t& evp, const evp_fd& fd, std::stringstream& stream);

Expand All @@ -145,7 +145,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok unpacked successfully;
* status == evp_result_status::error an error occurred during unpacking, message contains details;
* status == evp_result_status::failure an error occurred during unpacking, message contains details;
*/
LIBEVP_API evp_result get_file(const file_path_t& evp, const file_path_t& file, std::vector<uint8_t>& buffer);

Expand All @@ -158,7 +158,7 @@ namespace libevp {
*
* @returns evp_result
* status == evp_result_status::ok unpacked successfully;
* status == evp_result_status::error an error occurred during unpacking, message contains details;
* status == evp_result_status::failure an error occurred during unpacking, message contains details;
*/
LIBEVP_API evp_result get_file(const file_path_t& evp, const file_path_t& file, std::stringstream& stream);

Expand All @@ -172,4 +172,4 @@ namespace libevp {
*/
LIBEVP_API std::vector<file_path_t> get_filtered_files(const dir_path_t& input, evp_filter filter);
};
}
}
4 changes: 1 addition & 3 deletions source/libevp/format/format_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ void libevp::format::v2::format::read_file_desc_block(libevp::fstream_read& stre

block->files.push_back(fd);
}

return;
}

void libevp::format::v2::format::read_file_data(libevp::fstream_read& stream, evp_fd& fd, data_read_cb_t cb) {
Expand Down Expand Up @@ -287,7 +285,7 @@ void decode_block(uint8_t* block, uint32_t block_size) {
uint32_t key[4] = {};
memcpy(key, &KEY, 16);

for (int i = 0; i < decode_size / 8; i++) {
for (uint32_t i = 0; i < decode_size / 8; i++) {
TEA_decode(block + (i * 8), block + (i * 8), key);
}
}
Expand Down

0 comments on commit 246b79a

Please sign in to comment.