Skip to content

Commit 0839c19

Browse files
authored
Implement an MD5 hashing module powered by BearSSL (#1800)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 85ae4ec commit 0839c19

File tree

316 files changed

+78043
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+78043
-3
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
55
# Options
66
option(SOURCEMETA_CORE_UUID "Build the Sourcemeta Core UUID library" ON)
77
option(SOURCEMETA_CORE_GZIP "Build the Sourcemeta Core GZIP library" ON)
8+
option(SOURCEMETA_CORE_MD5 "Build the Sourcemeta Core MD5 library" ON)
89
option(SOURCEMETA_CORE_REGEX "Build the Sourcemeta Core Regex library" ON)
910
option(SOURCEMETA_CORE_URI "Build the Sourcemeta Core URI library" ON)
1011
option(SOURCEMETA_CORE_JSON "Build the Sourcemeta Core JSON library" ON)
@@ -20,6 +21,7 @@ option(SOURCEMETA_CORE_INSTALL "Install the Sourcemeta Core library" ON)
2021
option(SOURCEMETA_CORE_ADDRESS_SANITIZER "Build Sourcemeta Core with an address sanitizer" OFF)
2122
option(SOURCEMETA_CORE_UNDEFINED_SANITIZER "Build Sourcemeta Core with an undefined behavior sanitizer" OFF)
2223
option(SOURCEMETA_CORE_CONTRIB_ZLIB "Build the ZLIB library for downstream consumers" OFF)
24+
option(SOURCEMETA_CORE_CONTRIB_BEARSSL "Build the BearSSL library for downstream consumers" OFF)
2325
option(SOURCEMETA_CORE_CONTRIB_GOOGLETEST "Build the GoogleTest library for downstream consumers" OFF)
2426
option(SOURCEMETA_CORE_CONTRIB_GOOGLEBENCHMARK "Build the GoogleBenchmark library for downstream consumers" OFF)
2527

@@ -57,6 +59,11 @@ if(SOURCEMETA_CORE_GZIP OR SOURCEMETA_CORE_CONTRIB_ZLIB)
5759
add_subdirectory(src/core/gzip)
5860
endif()
5961

62+
if(SOURCEMETA_CORE_MD5 OR SOURCEMETA_CORE_CONTRIB_BEARSSL)
63+
find_package(BearSSL REQUIRED)
64+
add_subdirectory(src/core/md5)
65+
endif()
66+
6067
if(SOURCEMETA_CORE_REGEX)
6168
find_package(BoostRegex REQUIRED)
6269
add_subdirectory(src/core/regex)
@@ -132,6 +139,10 @@ if(SOURCEMETA_CORE_TESTS)
132139
add_subdirectory(test/gzip)
133140
endif()
134141

142+
if(SOURCEMETA_CORE_MD5)
143+
add_subdirectory(test/md5)
144+
endif()
145+
135146
if(SOURCEMETA_CORE_REGEX)
136147
add_subdirectory(test/regex)
137148
endif()

DEPENDENCIES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite
1414
uriparser https://github.com/uriparser/uriparser bfe94f6e54d0abb5afa7bb0411940b7242cb835a
1515
yaml https://github.com/yaml/libyaml 0.2.5
1616
zlib https://github.com/madler/zlib 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
17+
bearssl https://www.bearssl.org/git/BearSSL 8ef7680081c61b486622f2d983c0d3d21e83caad
1718
boost-regex https://github.com/boostorg/regex boost-1.86.0
1819
googletest https://github.com/google/googletest a7f443b80b105f940225332ed3c31f2790092f47
1920
googlebenchmark https://github.com/google/benchmark 378fe693a1ef51500db21b11ff05a8018c5f0e55

0 commit comments

Comments
 (0)