diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-03 01:28:51 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-03 01:28:51 +0200 |
commit | fd52f708ddb8a985d785fac9c51c8da3fe2ff937 (patch) | |
tree | 6d77e0abef948610ec0046d2f892fdb5f16d815a /brandt.c | |
parent | 017a90a88cf17a680f82aa99e733785709c05613 (diff) |
update tests
Diffstat (limited to 'brandt.c')
-rw-r--r-- | brandt.c | 66 |
1 files changed, 0 insertions, 66 deletions
@@ -26,72 +26,6 @@ #include "util.h" -typedef int -(*msg_recv)(struct BRANDT_Auction *ad, - const unsigned char *buf, - size_t buflen, - uint16_t sender); - - -enum { - auction_firstPrice, - auction_mPlusFirstPrice, - auction_last -}; - - -enum { - outcome_private, - outcome_public, - outcome_last -}; - - -/** - * stores the function pointers to receive functions for each state. - * - * The first index denotes if a first price auction or a M+1st price auction is - * used. If it is 0, it is a first price auction, if it is 1, it is a M+1st - * price auction. - * - * The second index denotes if the outcome should be public or private. A value - * of 0 means a private outcome, while a value of 1 means public outcome. - */ -static msg_recv handler_in[auction_last][outcome_last][msg_last] = -{ - [auction_firstPrice] = - { - [outcome_private] = - { - [msg_init] = &smc_recv_keyshare, - [msg_bid] = &smc_recv_encrypted_bid, - [msg_outcome] = &fp_priv_recv_outcome, - [msg_decrypt] = &fp_priv_recv_decryption, - }, - [outcome_public] = - { - [msg_init] = &smc_recv_keyshare, - [msg_bid] = &smc_recv_encrypted_bid, - [msg_outcome] = &fp_pub_recv_outcome, - [msg_decrypt] = &fp_pub_recv_decryption, - } - }, - [auction_mPlusFirstPrice] = - { - [outcome_private] = - { - [msg_init] = &smc_recv_keyshare, - [msg_bid] = &smc_recv_encrypted_bid, - }, - [outcome_public] = - { - [msg_init] = &smc_recv_keyshare, - [msg_bid] = &smc_recv_encrypted_bid, - } - } -}; - - void BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx) { |