Skip to content

Commit bc88e4e

Browse files
committedJun 25, 2021
Add secret sharing benchmarks and tests
The sanity checks ensure that, for a wide range of threshold values, a quorum or superset can be recombined, but the secret is not recovered from too few shares nor from a quorum with a corrupted share. The known reconstructions were generated from random shares with this implementation, but they guard against unintended representation changes that would prevent old key shares being successfully recombined with later versions of Pocketcrypt.
1 parent fc33f95 commit bc88e4e

File tree

4 files changed

+648
-1
lines changed

4 files changed

+648
-1
lines changed
 

‎Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ override CFLAGS += -I.
1111
test: $(basename $(wildcard test/*.c))
1212
@echo $(foreach TEST,$^,&& $(TEST))
1313

14-
test/x25519-known test/x25519-sanity test/x25519-speed: x25519.[ch]
1514
test/duplex-known test/duplex-sanity test/duplex-speed: duplex.h
1615
test/gimli-known test/gimli-sanity test/gimli-speed: duplex.h
16+
test/shamir-known test/shamir-sanity test/shamir-speed: shamir.[ch]
17+
test/x25519-known test/x25519-sanity test/x25519-speed: x25519.[ch]
1718

1819
tools: $(basename $(wildcard tools/*.c))
1920

0 commit comments

Comments
 (0)
Please sign in to comment.