Add sha512 and sha512_256 hash support

This commit is contained in:
2025-05-11 15:30:01 +08:00
parent 4a6de34a64
commit eeeedae697
8 changed files with 673 additions and 30 deletions

View File

@@ -126,6 +126,7 @@ set(SOURCE_FILE
utils_static.cpp
hash_map.cpp
reg_util.cpp
hash_lib.cpp
)
set(SOURCE_FILE_HEADERS
cfileop.h
@@ -154,6 +155,7 @@ set(SOURCE_FILE_HEADERS
utils_static.h
hash_map.h
reg_util.h
hash_lib.h
)
if (NOT HAVE_STRPTIME)
@@ -204,7 +206,7 @@ if (ENABLE_UTILS_TESTING)
add_subdirectory(googletest)
enable_testing()
add_executable(unittest test/stack_test.cpp test/queue_test.cpp test/binary_tree_test.cpp
test/hash_map_test.cpp)
test/hash_map_test.cpp test/hash_lib_test.cpp)
target_link_libraries(unittest GTest::gtest_main utils)
include(GoogleTest)
gtest_discover_tests(unittest)