aboutsummaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-28 16:29:18 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-28 16:29:18 +0200
commitfb2bf04d382da6ec2f823dacaf4962aca713bac6 (patch)
tree61e798df4b817d7843a1e3dce6c01c3ffd4913c8 /crypto.h
parent5dbbef588dc7247570c9c5f9797b38d907313288 (diff)
add outcome computation with test
also: - enhance smc_zkp_2dle: secret can now be auto generated. - enhance sum functions: can now use custom step advancing. - add init1 and free1 for 1-dimensional point arrays. - declare loop variables inside loop header. - narrow some variable scopes.
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto.h b/crypto.h
index 77e1848..4e93e03 100644
--- a/crypto.h
+++ b/crypto.h
@@ -123,4 +123,9 @@ int smc_recv_encrypted_bid (struct AuctionData *ad,
size_t buflen,
uint16_t sender_index);
+unsigned char *smc_compute_outcome (struct AuctionData *ad, size_t *buflen);
+int smc_recv_outcome (struct AuctionData *ad,
+ unsigned char *buf,
+ size_t buflen,
+ uint16_t sender);
#endif /* ifndef _BRANDT_CRYPTO_H */