Skip to content

Commit

Permalink
Add bls12 381 shake 256 ciphersuite (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanSchmiedmayer authored Apr 19, 2024
1 parent d2e56dc commit b7c979d
Show file tree
Hide file tree
Showing 24 changed files with 3,862 additions and 1,317 deletions.
3 changes: 2 additions & 1 deletion .uncrustify.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ sp_after_cast=add

ls_for_split_full=true
ls_func_split_full=true
ls_code_width=true
ls_code_width=false

# Arithmetic operations in wrapped expressions should be at the start
# of the line.
pos_arith=lead
pos_comma = trail

# Fully parenthesize boolean exprs
mod_full_paren_if_bool=false
Expand Down
15 changes: 13 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ ExternalProject_Get_Property(relic BINARY_DIR)
ExternalProject_Get_Property(relic SOURCE_DIR)
include_directories(${SOURCE_DIR}/include)

find_program(MAKE_EXECUTABLE NAMES gmake make mingw32-make REQUIRED)

ExternalProject_Add(
KeccakCodePackage
PREFIX ${CMAKE_BINARY_DIR}/KeccakCodePackage
GIT_REPOSITORY https://github.com/XKCP/XKCP.git
GIT_TAG 07ed6e44dc9032708b438ad19740970a40b3b285
GIT_SUBMODULES "support/XKCBuild"
UPDATE_DISCONNECTED 1
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE 1
BUILD_COMMAND ${MAKE_EXECUTABLE} -j generic64/libXKCP.a
INSTALL_COMMAND "")

file(MAKE_DIRECTORY ${BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}) # avoid race
# condition
Expand All @@ -70,7 +83,5 @@ if(DEFINED LIBBBS_DEBUG)
add_compile_definitions(LIBBBS_DEBUG)
endif()



add_subdirectory(src)
add_subdirectory(test)
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Specification-compliant and performant implementation of the [bbs signature scheme](https://www.ietf.org/archive/id/draft-irtf-cfrg-bbs-signatures-05.html).

Provides a library `libbbs` implementing the `BLS12381-SHA-256` cipher suite.
Provides a library `libbbs` implementing the `BLS12381-SHA-256` and `BLS12-381-SHAKE-256` cipher suite.

## Setup

Expand Down Expand Up @@ -31,4 +31,3 @@ cmake ..
make -j
make test
```

Loading

0 comments on commit b7c979d

Please sign in to comment.