From f294cd3a85c084490a10ae6ac9c1dab4c60a7678 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 31 Aug 2016 15:13:50 +0200 Subject: finish prep functions for first price auctions --- crypto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crypto.h') diff --git a/crypto.h b/crypto.h index b3520d0..16aa536 100644 --- a/crypto.h +++ b/crypto.h @@ -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, -- cgit v1.2.3