diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-08 19:17:15 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-08 19:17:15 +0200 |
commit | 14546eccb205aa844657d2c350c83f6be1289b67 (patch) | |
tree | 8d081850e2ca5dd44b1e03d7ed39a61c487c9725 /test_crypto.c | |
parent | f294cd3a85c084490a10ae6ac9c1dab4c60a7678 (diff) |
test_brandt nearly done
Diffstat (limited to 'test_crypto.c')
-rw-r--r-- | test_crypto.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test_crypto.c b/test_crypto.c index 2d1b50a..2a04c1d 100644 --- a/test_crypto.c +++ b/test_crypto.c @@ -209,11 +209,14 @@ test_setup_auction_data () { \ handler_prep[type][oc][index] (&ad[i]); \ bufs[i] = handler_out[type][oc][index] (&ad[i], &lens[i]); \ - CHECK (bufs[i], "failed to gen keyshare"); \ + CHECK (bufs[i], "failed to gen message buffer"); \ } \ \ for (uint16_t i = 0; i < bidders; i++) \ { \ + /* enable seller mode for receiving decryption messages */ \ + if (msg_decrypt == index) \ + ad[i].seller_mode = 1; \ for (uint16_t s = 0; s < bidders; s++) \ { \ if (s == i) \ @@ -224,8 +227,11 @@ test_setup_auction_data () lens[s] - \ sizeof (struct msg_head), \ s), \ - "failed checking keyshare"); \ + "failed to parse message buffer"); \ } \ + /* disable seller mode again */ \ + if (msg_decrypt == index) \ + ad[i].seller_mode = 0; \ } \ \ for (uint16_t i = 0; i < bidders; i++) \ |