aboutsummaryrefslogtreecommitdiff
path: root/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'internals.h')
-rw-r--r--internals.h36
1 files changed, 18 insertions, 18 deletions
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 <pari/pari.h>
+#include <gcrypt.h>
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 */