diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-11-03 23:55:44 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-11-03 23:55:44 +0000 |
commit | db0eda7ee56d5c7a4bcbb3a1bf2edc60234b169c (patch) | |
tree | 1b10a7a802609d73d28208759f24920a910ee552 /src/include/gnunet_secretsharing_service.h | |
parent | e29e2169b8b0c9799a0ca907ebb89c280ef599c6 (diff) | |
download | gnunet-db0eda7ee56d5c7a4bcbb3a1bf2edc60234b169c.tar.gz gnunet-db0eda7ee56d5c7a4bcbb3a1bf2edc60234b169c.zip |
separated threshold from other crypto parameters
Diffstat (limited to 'src/include/gnunet_secretsharing_service.h')
-rw-r--r-- | src/include/gnunet_secretsharing_service.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/gnunet_secretsharing_service.h b/src/include/gnunet_secretsharing_service.h index e5f752398..d7bc46135 100644 --- a/src/include/gnunet_secretsharing_service.h +++ b/src/include/gnunet_secretsharing_service.h | |||
@@ -61,11 +61,6 @@ struct GNUNET_SECRETSHARING_DecryptionHandle; | |||
61 | struct GNUNET_SECRETSHARING_Parameters | 61 | struct GNUNET_SECRETSHARING_Parameters |
62 | { | 62 | { |
63 | /** | 63 | /** |
64 | * Threshold, that is, minimum number of peers that | ||
65 | * must cooperate to decrypt a value. | ||
66 | */ | ||
67 | unsigned int k; | ||
68 | /** | ||
69 | * Prime with p = 2q+1. | 64 | * Prime with p = 2q+1. |
70 | */ | 65 | */ |
71 | gcry_mpi_t p; | 66 | gcry_mpi_t p; |
@@ -134,6 +129,8 @@ typedef void (*GNUNET_SECRETSHARING_DecryptCallback) (void *cls, | |||
134 | * @param session_id unique session id | 129 | * @param session_id unique session id |
135 | * @param deadline point in time where the session must be established; taken as hint | 130 | * @param deadline point in time where the session must be established; taken as hint |
136 | * by underlying consensus sessions | 131 | * by underlying consensus sessions |
132 | * @param parameters parameters for the crypto system | ||
133 | * @param threshold minimum number of peers that must cooperate to decrypt a value | ||
137 | * @param cb called when the secret has been established | 134 | * @param cb called when the secret has been established |
138 | * @param cls closure for cb | 135 | * @param cls closure for cb |
139 | */ | 136 | */ |
@@ -144,6 +141,7 @@ GNUNET_SECRETSHARING_create_session (const struct GNUNET_CONFIGURATION_Handle *c | |||
144 | const struct GNUNET_HashCode *session_id, | 141 | const struct GNUNET_HashCode *session_id, |
145 | struct GNUNET_TIME_Absolute deadline, | 142 | struct GNUNET_TIME_Absolute deadline, |
146 | struct GNUNET_SECRETSHARING_Parameters *parameters, | 143 | struct GNUNET_SECRETSHARING_Parameters *parameters, |
144 | unsigned int threshold, | ||
147 | GNUNET_SECRETSHARING_SecretReadyCallback *cb, | 145 | GNUNET_SECRETSHARING_SecretReadyCallback *cb, |
148 | void *cls); | 146 | void *cls); |
149 | 147 | ||