diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-31 15:13:50 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-31 15:13:50 +0200 |
commit | f294cd3a85c084490a10ae6ac9c1dab4c60a7678 (patch) | |
tree | 1da393c61f4662eb4f18e71c5b7cc552a7c1cfae /crypto.h | |
parent | 7b84ab7fe10b0ccf6c5e93bebf06267e18a09bf8 (diff) |
finish prep functions for first price auctions
Diffstat (limited to 'crypto.h')
-rw-r--r-- | crypto.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -130,6 +130,7 @@ int smc_recv_encrypted_bid (struct BRANDT_Auction *ad, size_t buflen, uint16_t sender_index); +void fp_priv_prep_outcome (struct BRANDT_Auction *ad); unsigned char *fp_priv_compute_outcome (struct BRANDT_Auction *ad, size_t *buflen); int fp_priv_recv_outcome (struct BRANDT_Auction *ad, @@ -137,6 +138,7 @@ int fp_priv_recv_outcome (struct BRANDT_Auction *ad, size_t buflen, uint16_t sender); +void fp_priv_prep_decryption (struct BRANDT_Auction *ad); unsigned char *fp_priv_decrypt_outcome (struct BRANDT_Auction *ad, size_t *buflen); int fp_priv_recv_decryption (struct BRANDT_Auction *ad, @@ -204,8 +206,8 @@ static const RoundPrep handler_prep[auction_last][outcome_last][msg_last] = { [outcome_private] = { [msg_init] = &smc_prep_keyshare, [msg_bid] = &smc_prep_bid, -// [msg_outcome] = &fp_priv_prep_outcome, -// [msg_decrypt] = &fp_priv_prep_decryption, + [msg_outcome] = &fp_priv_prep_outcome, + [msg_decrypt] = &fp_priv_prep_decryption, }, [outcome_public] = { [msg_init] = &smc_prep_keyshare, |