From 0d3b32b24881cb9ce89d0b6689ada53f88d0008e Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Tue, 23 Aug 2016 13:33:08 +0200 Subject: add outcome determination to brandt.c --- crypto.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crypto.h') diff --git a/crypto.h b/crypto.h index 9cb5405..2f40ed3 100644 --- a/crypto.h +++ b/crypto.h @@ -142,6 +142,8 @@ int fp_priv_recv_decryption (struct BRANDT_Auction *ad, size_t buflen, uint16_t sender); +int32_t fp_priv_determine_outcome (struct BRANDT_Auction *ad); + unsigned char *fp_pub_compute_outcome (struct BRANDT_Auction *ad, size_t *buflen); int fp_pub_recv_outcome (struct BRANDT_Auction *ad, @@ -156,7 +158,7 @@ int fp_pub_recv_decryption (struct BRANDT_Auction *ad, size_t buflen, uint16_t sender); -int32_t fp_priv_determine_outcome (struct BRANDT_Auction *ad); +int32_t fp_pub_determine_outcome (struct BRANDT_Auction *ad, uint16_t *winner); /* --- Round dictionaries --- */ -- cgit v1.2.3