aboutsummaryrefslogtreecommitdiff
path: root/src/secretsharing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
commitaa78134a557079ce570345e751e4c36c4b2ba79a (patch)
treef7bf25950513285184e2426109235337d0aef8be /src/secretsharing
parent1f2674fe293be7c1a852fbe4a7241fbcb149078f (diff)
downloadgnunet-aa78134a557079ce570345e751e4c36c4b2ba79a.tar.gz
gnunet-aa78134a557079ce570345e751e4c36c4b2ba79a.zip
-fix many more typos
Diffstat (limited to 'src/secretsharing')
-rw-r--r--src/secretsharing/gnunet-secretsharing-profiler.c2
-rw-r--r--src/secretsharing/gnunet-service-secretsharing.c8
-rw-r--r--src/secretsharing/secretsharing_api.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/secretsharing/gnunet-secretsharing-profiler.c b/src/secretsharing/gnunet-secretsharing-profiler.c
index 3465e0167..76bba0bc9 100644
--- a/src/secretsharing/gnunet-secretsharing-profiler.c
+++ b/src/secretsharing/gnunet-secretsharing-profiler.c
@@ -450,7 +450,7 @@ session_disconnect_adapter (void *cls, void *op_result)
450 * @param op the operation this callback corresponds to 450 * @param op the operation this callback corresponds to
451 * @param pinfo the result; will be NULL if the operation has failed 451 * @param pinfo the result; will be NULL if the operation has failed
452 * @param emsg error message if the operation has failed; will be NULL if the 452 * @param emsg error message if the operation has failed; will be NULL if the
453 * operation is successfull 453 * operation is successful
454 */ 454 */
455static void 455static void
456peer_info_cb (void *cb_cls, 456peer_info_cb (void *cb_cls,
diff --git a/src/secretsharing/gnunet-service-secretsharing.c b/src/secretsharing/gnunet-service-secretsharing.c
index 2177134f6..939b7827d 100644
--- a/src/secretsharing/gnunet-service-secretsharing.c
+++ b/src/secretsharing/gnunet-service-secretsharing.c
@@ -241,7 +241,7 @@ struct DecryptSession
241 241
242 /** 242 /**
243 * Share of the local peer. 243 * Share of the local peer.
244 * Containts other important information, such as 244 * Contains other important information, such as
245 * the list of other peers. 245 * the list of other peers.
246 */ 246 */
247 struct GNUNET_SECRETSHARING_Share *share; 247 struct GNUNET_SECRETSHARING_Share *share;
@@ -379,7 +379,7 @@ time_between (struct GNUNET_TIME_Absolute start,
379 379
380 380
381/** 381/**
382 * Compare two peer identities. Indended to be used with qsort or bsearch. 382 * Compare two peer identities. Intended to be used with qsort or bsearch.
383 * 383 *
384 * @param p1 Some peer identity. 384 * @param p1 Some peer identity.
385 * @param p2 Some peer identity. 385 * @param p2 Some peer identity.
@@ -1931,9 +1931,9 @@ decrypt_new_element (void *cls,
1931 gcry_mpi_t w; 1931 gcry_mpi_t w;
1932 /* ciphertext component #1 */ 1932 /* ciphertext component #1 */
1933 gcry_mpi_t c1; 1933 gcry_mpi_t c1;
1934 /* temporary variable (for comparision) #1 */ 1934 /* temporary variable (for comparison) #1 */
1935 gcry_mpi_t tmp1; 1935 gcry_mpi_t tmp1;
1936 /* temporary variable (for comparision) #2 */ 1936 /* temporary variable (for comparison) #2 */
1937 gcry_mpi_t tmp2; 1937 gcry_mpi_t tmp2;
1938 1938
1939 if (NULL == element) 1939 if (NULL == element)
diff --git a/src/secretsharing/secretsharing_api.c b/src/secretsharing/secretsharing_api.c
index b29109da9..98f800c95 100644
--- a/src/secretsharing/secretsharing_api.c
+++ b/src/secretsharing/secretsharing_api.c
@@ -435,14 +435,14 @@ GNUNET_SECRETSHARING_plaintext_generate_i (struct
435 * Encrypt a value. This operation is executed locally, no communication is 435 * Encrypt a value. This operation is executed locally, no communication is
436 * necessary. 436 * necessary.
437 * 437 *
438 * This is a helper function, encryption can be done soley with a session's public key 438 * This is a helper function, encryption can be done solely with a session's public key
439 * and the crypto system parameters. 439 * and the crypto system parameters.
440 * 440 *
441 * @param public_key public key to use for decryption 441 * @param public_key public key to use for decryption
442 * @param message message to encrypt 442 * @param message message to encrypt
443 * @param message_size number of bytes in @a message 443 * @param message_size number of bytes in @a message
444 * @param result_ciphertext pointer to store the resulting ciphertext 444 * @param result_ciphertext pointer to store the resulting ciphertext
445 * @return #GNUNET_YES on succes, #GNUNET_SYSERR if the message is invalid (invalid range) 445 * @return #GNUNET_YES on success, #GNUNET_SYSERR if the message is invalid (invalid range)
446 */ 446 */
447int 447int
448GNUNET_SECRETSHARING_encrypt (const struct 448GNUNET_SECRETSHARING_encrypt (const struct