<commit_before>
.PHONY: all clean check

TOPDIR = ../..
SRCDIR = $(TOPDIR)/src

LIBRARY = libnoiseprotocol.a

# Definitions for Ed448-Goldilocks (Curve448 reference implementation)
GOLDILOCKS_ARCH = arch_32
GOLDILOCKS_SRCDIR = $(SRCDIR)/crypto/goldilocks/src
GOLDILOCKS_CPPFLAGS = \
	-I$(GOLDILOCKS_SRCDIR)/include \
	-I$(GOLDILOCKS_SRCDIR)/p448 \
	-I$(GOLDILOCKS_SRCDIR)/p448/$(GOLDILOCKS_ARCH)

# Definitions for ed25519-donna (Ed25519 reference implementation)
ED25519_CPPFLAGS = -DED25519_CUSTOMHASH -DED25519_CUSTOMRANDOM

CPPFLAGS = -I$(TOPDIR)/include -I$(SRCDIR) -I$(SRCDIR)/protocol \
	$(GOLDILOCKS_CPPFLAGS) $(ED25519_CPPFLAGS)
CFLAGS = -std=c99 -g -O2 -Wall $(CPPFLAGS)

MAIN_SOURCES = \
	$(SRCDIR)/protocol/cipherstate.c \
	$(SRCDIR)/protocol/dhstate.c \
	$(SRCDIR)/protocol/errors.c \
	$(SRCDIR)/protocol/handshakestate.c \
	$(SRCDIR)/protocol/hashstate.c \
	$(SRCDIR)/protocol/names.c \
	$(SRCDIR)/protocol/patterns.c \
	$(SRCDIR)/protocol/randstate.c \
	$(SRCDIR)/protocol/rand_os.c \<commit_msg>Switch to arch_ref64 for goldilocks - doubles Curve448 performance<commit_after>
.PHONY: all clean check

TOPDIR = ../..
SRCDIR = $(TOPDIR)/src

LIBRARY = libnoiseprotocol.a

# Definitions for Ed448-Goldilocks (Curve448 reference implementation)
GOLDILOCKS_ARCH = arch_ref64
GOLDILOCKS_SRCDIR = $(SRCDIR)/crypto/goldilocks/src
GOLDILOCKS_CPPFLAGS = \
	-I$(GOLDILOCKS_SRCDIR)/include \
	-I$(GOLDILOCKS_SRCDIR)/p448 \
	-I$(GOLDILOCKS_SRCDIR)/p448/$(GOLDILOCKS_ARCH)

# Definitions for ed25519-donna (Ed25519 reference implementation)
ED25519_CPPFLAGS = -DED25519_CUSTOMHASH -DED25519_CUSTOMRANDOM

CPPFLAGS = -I$(TOPDIR)/include -I$(SRCDIR) -I$(SRCDIR)/protocol \
	$(GOLDILOCKS_CPPFLAGS) $(ED25519_CPPFLAGS)
CFLAGS = -std=c99 -g -O2 -Wall $(CPPFLAGS)

MAIN_SOURCES = \
	$(SRCDIR)/protocol/cipherstate.c \
	$(SRCDIR)/protocol/dhstate.c \
	$(SRCDIR)/protocol/errors.c \
	$(SRCDIR)/protocol/handshakestate.c \
	$(SRCDIR)/protocol/hashstate.c \
	$(SRCDIR)/protocol/names.c \
	$(SRCDIR)/protocol/patterns.c \
	$(SRCDIR)/protocol/randstate.c \
	$(SRCDIR)/protocol/rand_os.c \
{'fraction_non_alphanumeric': 0.15062560153994226, 'fraction_numerical': 0.04764196342637151, 'mean_word_length': 4.872881355932203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6680201', 'n_tokens_mistral': 901, 'n_tokens_neox': 871, 'n_words': 117}