mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-27 15:43:42 +08:00
Update tests
This commit is contained in:
9
cmake/tool_ghash.cmake
Normal file
9
cmake/tool_ghash.cmake
Normal 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)
|
||||
Reference in New Issue
Block a user