Update tests

This commit is contained in:
Zhi Guan
2026-06-20 23:10:17 +08:00
parent 1577bc7934
commit 6736825c7a
22 changed files with 497 additions and 84 deletions

9
cmake/tool_ghash.cmake Normal file
View File

@@ -0,0 +1,9 @@
include("${CMAKE_CURRENT_LIST_DIR}/tool_helpers.cmake")
gmssl_expect_stdout("50db43e2ab4a2bbddd6e1182de2cc22b\n"
ghash -h 0123456789abcdeffedcba9876543210 -aad_hex 001122 -in_str abc)
file(WRITE tool_ghash_input.txt "abc")
gmssl_run(ghash -h 0123456789abcdeffedcba9876543210 -aad "aad" -bin
-in tool_ghash_input.txt -out tool_ghash.bin)
gmssl_require_file(tool_ghash.bin)