aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-22 14:25:48 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-22 14:25:48 +0200
commitd1fe3b0be77e1835feaec34aa7e04ff47af74fff (patch)
tree71ddb1af09909457a52ff9a7d1d2821e697d62cb
parenta49b2facee0242ebbeebe30e4f479afbaa381893 (diff)
update crypto interface
-rw-r--r--crypto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto.h b/crypto.h
index 5472532..d00a138 100644
--- a/crypto.h
+++ b/crypto.h
@@ -116,5 +116,15 @@ int smc_zkp_0og_check (const gcry_mpi_point_t y,
/* --- Protocol implementation --- */
unsigned char *smc_gen_keyshare (struct AuctionData *ad, size_t *buflen);
+int smc_recv_keyshare (struct AuctionData *ad,
+ unsigned char *buf,
+ size_t buflen,
+ uint16_t sender_index);
+
+unsigned char *smc_encrypt_bid (struct AuctionData *ad, size_t *buflen);
+int smc_recv_encrypted_bid (struct AuctionData *ad,
+ unsigned char *buf,
+ size_t buflen,
+ uint16_t sender_index);
#endif /* ifndef _BRANDT_CRYPTO_H */