Skip to content

Commit

Permalink
use secp ecc lib by default, with smaller precomputed table for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
djb committed Mar 22, 2016
1 parent 4788b37 commit 0ed26ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ os:
- linux

env:
- ENV="-DBUILD_TYPE=test -DUSE_UECC_LIB=ON" TEST=yes
- ENV="-DBUILD_TYPE=test -DUSE_UECC_LIB=OFF" TEST=yes
- ENV="-DBUILD_TYPE=firmware -DUSE_UECC_LIB=ON" TEST=no
- ENV="-DBUILD_TYPE=bootloader -DUSE_UECC_LIB=ON" TEST=no
# - ENV="-DBUILD_TYPE=firmware -DUSE_UECC_LIB=OFF" TEST=no # secp lib too big at the moment
- ENV="-DBUILD_TYPE=test -DUSE_UECC_LIB=ON" TEST=yes
- ENV="-DBUILD_TYPE=test -DUSE_UECC_LIB=OFF" TEST=yes
- ENV="-DBUILD_TYPE=bootloader -DUSE_UECC_LIB=ON" TEST=no # use the smaller ecc lib
- ENV="-DBUILD_TYPE=firmware -DUSE_UECC_LIB=OFF" TEST=no
# - ENV="-DBUILD_TYPE=firmware -DUSE_UECC_LIB=ON" TEST=no

compiler:
- clang
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ project(${MYPROJECT} C)
#-----------------------------------------------------------------------------
# Options for building

if(BUILD_TYPE STREQUAL "bootloader")
option(USE_UECC_LIB "Use micro ECC instead bitcoin's secp256k1 library." ON)
else()
option(USE_UECC_LIB "Use micro ECC instead bitcoin's secp256k1 library." OFF)
endif()
option(BUILD_COVERAGE "Compile with test coverage flags." OFF)
option(BUILD_VALGRIND "Compile with debug symbols." OFF)
option(BUILD_DOCUMENTATION "Build the Doxygen documentation." OFF)
Expand Down Expand Up @@ -90,6 +94,8 @@ endif()

if(USE_UECC_LIB)
add_definitions(-DECC_USE_UECC_LIB)
else()
add_definitions(-DSECP256K1_BUILD=1)
endif()


Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1

0 comments on commit 0ed26ed

Please sign in to comment.