Add test for cryptonight lite.
This commit is contained in:
parent
ff7be00f6f
commit
719601f92b
5 changed files with 159 additions and 7 deletions
27
test/cryptonight_lite/CMakeLists.txt
Normal file
27
test/cryptonight_lite/CMakeLists.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
set(SOURCES
|
||||
cryptonight_lite.c
|
||||
../../options.h
|
||||
../../algo/cryptonight/cryptonight.h
|
||||
../../algo/cryptonight/cryptonight.c
|
||||
../../algo/cryptonight-lite/cryptonight_lite_av1_aesni.c
|
||||
../../algo/cryptonight-lite/cryptonight_lite_av2_aesni_double.c
|
||||
../../algo/cryptonight-lite/cryptonight_lite_av3_softaes.c
|
||||
../../algo/cryptonight-lite/cryptonight_lite_av4_softaes_double.c
|
||||
../../crypto/c_keccak.c
|
||||
../../crypto/c_blake256.c
|
||||
../../crypto/c_groestl.c
|
||||
../../crypto/c_jh.c
|
||||
../../crypto/c_skein.c
|
||||
../../crypto/soft_aes.c
|
||||
)
|
||||
|
||||
add_executable(cryptonight_lite_app ${SOURCES})
|
||||
target_link_libraries(cryptonight_lite_app unity)
|
||||
|
||||
include_directories(../..)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes -fno-strict-aliasing")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
|
||||
add_definitions(-DBUILD_TEST)
|
||||
|
||||
add_test(cryptonight_lite_test cryptonight_lite_app)
|
Loading…
Add table
Add a link
Reference in a new issue