Add sm4_xts and ghash command

This commit is contained in:
Zhi Guan
2024-05-15 10:00:22 +08:00
parent 8fb8dd05ab
commit 7cc5b77cf8
8 changed files with 431 additions and 6 deletions

View File

@@ -147,6 +147,7 @@ set(tools
tools/sm9decrypt.c
tools/zuc.c
tools/rand.c
tools/ghash.c
tools/pbkdf2.c
tools/certgen.c
tools/certparse.c
@@ -353,6 +354,7 @@ if (ENABLE_SM4_XTS)
message(STATUS "ENABLE_SM4_XTS is ON")
add_definitions(-DENABLE_SM4_XTS)
list(APPEND src src/sm4_xts.c)
list(APPEND tools tools/sm4_xts.c)
list(APPEND tests sm4_xts)
endif()