* Added AES and AES-CTR modules. AES-CTR conforms to the same counter mode used with AES in *OpenSSL*. * All algorithms now work on Big-Endian architectures. * Now uses CMake for building rather than make files and Visual Studio projects. CMake will generate whatever system is required. * Input function parameters are now marked `const` * File names have been changed to have the prefix `CryptLib_` rather than `Lib`. * Various formatting changes to the files.
34 lines
955 B
CMake
34 lines
955 B
CMake
cmake_minimum_required(VERSION 3.6.0)
|
|
|
|
project( CryptLib )
|
|
|
|
# CryptLib Static Library
|
|
add_library( CryptLib STATIC
|
|
lib/CryptLib_Aes.h
|
|
lib/CryptLib_Aes.c
|
|
lib/CryptLib_AesCtr.h
|
|
lib/CryptLib_AesCtr.c
|
|
lib/CryptLib_Md5.h
|
|
lib/CryptLib_Md5.c
|
|
lib/CryptLib_Rc4.h
|
|
lib/CryptLib_Rc4.c
|
|
lib/CryptLib_Sha1.h
|
|
lib/CryptLib_Sha1.c
|
|
lib/CryptLib_Sha256.h
|
|
lib/CryptLib_Sha256.c
|
|
lib/CryptLib_Sha512.h
|
|
lib/CryptLib_Sha512.c )
|
|
target_include_directories( CryptLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/lib )
|
|
set_target_properties ( CryptLib PROPERTIES FOLDER lib )
|
|
|
|
|
|
# Add the demo project directories
|
|
add_subdirectory( projects/CryptLibTest )
|
|
add_subdirectory( projects/Md5String )
|
|
add_subdirectory( projects/Rc4Output )
|
|
add_subdirectory( projects/Sha1String )
|
|
add_subdirectory( projects/Sha256String )
|
|
add_subdirectory( projects/Sha512String )
|
|
add_subdirectory( projects/AesBlock )
|
|
add_subdirectory( projects/AesCtrOutput )
|