From be1ac2e45203ce88e12aaba076fb68d86ff79e03 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Fri, 17 Jun 2016 15:34:46 +0200 Subject: update internals.h, add first algorithm functions --- internals.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'internals.h') diff --git a/internals.h b/internals.h index 32080ec..f705c6d 100644 --- a/internals.h +++ b/internals.h @@ -22,25 +22,25 @@ #ifndef _BRANDT_INTERNALS_H #define _BRANDT_INTERNALS_H -#include +#include struct AuctionData { - GEN p; /** The "safe prime" p */ - GEN q; /** The prime @f$q = (p - 1) / 2@f$. */ - GEN g; /** The generator of @f$\mathbb{G}_q@f$ */ - uint16_t n; /** The amount of bidders/agents */ - uint16_t k; /** The amount of possible prices */ - - GEN x; /** Own private additive key share */ - GEN y; /** Own public multiplicative key share */ - GEN Y; /** Shared public key */ - - GEN m; /** Additive share of random exponents, type: Matrix(n,k) */ - GEN r; /** Key share exponent, type: Vector(k) */ - GEN b; /** Own bid, type: Vector(k) */ - - GEN alpha; /** Own alpha, type: Vector(k) */ - GEN beta; /** Own beta, type: Vector(k) */ + uint16_t n; /** The amount of bidders/agents */ + uint16_t k; /** The amount of possible prices */ + uint16_t i; /** Own agents index, only used when bidding */ + + gcry_mpi_t x; /** Own private additive key share */ + gcry_mpi_point_t *y; /** public multiplicative key shares, size: n */ + gcry_mpi_point_t Y; /** Shared public key */ + + gcry_mpi_point_t *b; /** Own bid, size: k */ + + gcry_mpi_point_t **alpha; /** alphas, size: n*k */ + gcry_mpi_point_t **beta; /** betas, size: n*k */ + + gcry_mpi_point_t ***gamma; /** gamma, size: n*n*k */ + gcry_mpi_point_t ***delta; /** delta, size: n*n*k */ + gcry_mpi_point_t ***phi; /** phi, size: n*n*k */ }; -#endif +#endif /* ifndef _BRANDT_INTERNALS_H */ -- cgit v1.2.3