Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ lin
# vim tmp files
*.swp
*~

# cmake files
build/CMakeCache.txt
build/CMakeFiles/
build/Makefile
build/cmake_install.cmake
61 changes: 61 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
cmake_minimum_required (VERSION 3.0)
project (lineartrails)

set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

set (CMAKE_CXX_FLAGS "-Wall -Wpedantic -std=c++11")
set (CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -DNDEBUG")
set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")

add_executable (lin
tool/main.cpp

tinyxml2/tinyxml2.cpp
tinyxml2/tinyxml2.h

tool/cache.h
tool/cache.hpp
tool/commandlineparser.cpp
tool/commandlineparser.h
tool/configparser.cpp
tool/configparser.h
tool/guessmask.cpp
tool/guessmask.h
tool/layer.cpp
tool/layer.h
tool/lrucache.h
tool/lrucache.hpp
tool/mask.cpp
tool/mask.h
tool/permutation.cpp
tool/permutation.h
tool/permutation_list.cpp
tool/permutation_list.h
tool/search.cpp
tool/search.h
tool/statemask.h
tool/statemask.hpp
tool/step_linear.h
tool/step_linear.hpp
tool/step_nonlinear.h
tool/step_nonlinear.hpp

target/ascon.cpp
target/ascon.h
target/ascon_permutation.cpp
target/ascon_permutation.h
target/icepole.cpp
target/icepole.h
target/icepole_permutation.cpp
target/icepole_permutation.h
target/keccak1600.cpp
target/keccak1600.h
target/keccak1600_permutation.cpp
target/keccak1600_permutation.h
target/prost256.cpp
target/prost256.h
target/prost256_permutation.cpp
target/prost256_permutation.h
)
target_compile_definitions (lin PRIVATE -DTERMINALCOLORS)
target_include_directories (lin PRIVATE tool/ target/)
59 changes: 0 additions & 59 deletions Makefile

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Build
git submodule init && git submodule update
```

To build:
The build system is created by cmake, so after checking out the git repository, do:

```
make
mkdir build && cd build && cmake .. && make && cd ..
```


Expand All @@ -36,7 +36,7 @@ The folder ./examples contains example search configuration for Ascon, ICEPOLE,
Keyak, Minalpher and Proest. To start a search simply call for instance:

```
./lin -I 10 -S 2 -i examples/ascon_3_rounds_typeI.xml
bin/lin -I 10 -S 2 -i examples/ascon_3_rounds_typeI.xml
```

* `-I` determines how often status information of the search is displayed.
Expand Down
3 changes: 0 additions & 3 deletions build/.gitignore

This file was deleted.