diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-06 14:37:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-06 14:37:07 +0200 |
commit | c57caa206c761424b73e900978edff0a1b8fca50 (patch) | |
tree | 66641306c9a1d196dfe9f82c863bada50fb86187 /src/include/gnunet_crypto_lib.h | |
parent | c0d08bbdeed4523cf89bf55b64ce2c16476c3e26 (diff) | |
download | gnunet-c57caa206c761424b73e900978edff0a1b8fca50.tar.gz gnunet-c57caa206c761424b73e900978edff0a1b8fca50.zip |
introduce GNUNET_memcmp() and GNUNET_is_zero()
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 6a9eddd7c..c6ae943b9 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -1355,20 +1355,6 @@ GNUNET_CRYPTO_get_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1355 | 1355 | ||
1356 | 1356 | ||
1357 | /** | 1357 | /** |
1358 | * Compare two Peer Identities. | ||
1359 | * | ||
1360 | * @param first first peer identity | ||
1361 | * @param second second peer identity | ||
1362 | * @return bigger than 0 if first > second, | ||
1363 | * 0 if they are the same | ||
1364 | * smaller than 0 if second > first | ||
1365 | */ | ||
1366 | int | ||
1367 | GNUNET_CRYPTO_cmp_peer_identity (const struct GNUNET_PeerIdentity *first, | ||
1368 | const struct GNUNET_PeerIdentity *second); | ||
1369 | |||
1370 | |||
1371 | /** | ||
1372 | * Internal structure used to cache pre-calculated values for DLOG calculation. | 1358 | * Internal structure used to cache pre-calculated values for DLOG calculation. |
1373 | */ | 1359 | */ |
1374 | struct GNUNET_CRYPTO_EccDlogContext; | 1360 | struct GNUNET_CRYPTO_EccDlogContext; |
@@ -1397,7 +1383,7 @@ struct GNUNET_CRYPTO_EccPoint | |||
1397 | */ | 1383 | */ |
1398 | struct GNUNET_CRYPTO_EccDlogContext * | 1384 | struct GNUNET_CRYPTO_EccDlogContext * |
1399 | GNUNET_CRYPTO_ecc_dlog_prepare (unsigned int max, | 1385 | GNUNET_CRYPTO_ecc_dlog_prepare (unsigned int max, |
1400 | unsigned int mem); | 1386 | unsigned int mem); |
1401 | 1387 | ||
1402 | 1388 | ||
1403 | /** | 1389 | /** |