diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-28 16:29:18 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-28 16:29:18 +0200 |
commit | fb2bf04d382da6ec2f823dacaf4962aca713bac6 (patch) | |
tree | 61e798df4b817d7843a1e3dce6c01c3ffd4913c8 /crypto.h | |
parent | 5dbbef588dc7247570c9c5f9797b38d907313288 (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |