Skip to content

Commit b9e481b

Browse files
authored
Merge pull request #19 from notmike-5/remove-fn-dsa
removes FN-DSA (Falcon)
2 parents 8054d2e + 9e17578 commit b9e481b

Some content is hidden

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

41 files changed

+141
-24499
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
target/
21
build/
32
dist/
43
*.o
@@ -7,3 +6,8 @@ __pycache__
76
python/build/
87
*.egg-info/
98
node_modules/
9+
**.gcno
10+
**.lcov
11+
**/target/
12+
tags
13+
TAGS

CMakeLists.txt

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,11 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1515
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1616
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1717

18-
# Platform-specific settings
19-
if(APPLE)
20-
# Set strict floating-point model for macOS to match other platforms
21-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffp-contract=off -fno-fast-math")
22-
# Define FPEMU macro for Falcon to use emulated floating-point on macOS
23-
# This avoids platform-specific floating-point behavior
24-
add_definitions(-DFALCON_FPEMU=1)
25-
message(STATUS "macOS detected: Using emulated floating-point for Falcon")
26-
endif()
27-
2818
# Include directories
2919
include_directories(
3020
${CMAKE_CURRENT_SOURCE_DIR}/include
3121
${CMAKE_CURRENT_SOURCE_DIR}/dilithium/ref
3222
${CMAKE_CURRENT_SOURCE_DIR}/sphincsplus/ref
33-
${CMAKE_CURRENT_SOURCE_DIR}/falcon
3423
)
3524

3625
# Custom randombytes implementation
@@ -67,20 +56,6 @@ set(SLH_DSA_SOURCES
6756
sphincsplus/ref/fips202.c
6857
)
6958

70-
# FN-DSA-512 (FALCON) source files
71-
set(FN_DSA_SOURCES
72-
falcon/codec.c
73-
falcon/common.c
74-
falcon/falcon.c
75-
falcon/fft.c
76-
falcon/fpr.c
77-
falcon/keygen.c
78-
falcon/shake.c
79-
falcon/sign.c
80-
falcon/vrfy.c
81-
falcon/rng.c
82-
)
83-
8459
# libbitcoinpqc source files
8560
set(BITCOINPQC_SOURCES
8661
src/bitcoinpqc.c
@@ -92,18 +67,13 @@ set(BITCOINPQC_SOURCES
9267
src/slh_dsa/keygen.c
9368
src/slh_dsa/sign.c
9469
src/slh_dsa/verify.c
95-
src/fn_dsa/utils.c
96-
src/fn_dsa/keygen.c
97-
src/fn_dsa/sign.c
98-
src/fn_dsa/verify.c
9970
)
10071

10172
# Define the main library target
10273
add_library(bitcoinpqc STATIC
10374
${BITCOINPQC_SOURCES}
10475
${ML_DSA_SOURCES}
10576
${SLH_DSA_SOURCES}
106-
${FN_DSA_SOURCES}
10777
${CUSTOM_RANDOMBYTES}
10878
)
10979

@@ -116,7 +86,6 @@ target_include_directories(bitcoinpqc PUBLIC
11686
target_compile_definitions(bitcoinpqc PRIVATE
11787
DILITHIUM_MODE=2 # ML-DSA-44 (Dilithium2)
11888
PARAMS=sphincs-shake-128s
119-
FALCON_LOGN_512=9
12089
CUSTOM_RANDOMBYTES=1
12190
)
12291

0 commit comments

Comments
 (0)