aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-25 16:41:22 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-25 16:41:22 +0200
commit303334e67262bb6121dfbd245c66535f259d08af (patch)
tree1a92109915ffe63b7e2815edc6a6355f4065a48c /src/include
parent3c62493eb1aaa74812bbb79431686d99652417f4 (diff)
downloadgnunet-303334e67262bb6121dfbd245c66535f259d08af.tar.gz
gnunet-303334e67262bb6121dfbd245c66535f259d08af.zip
enable caching private->public key mapping in memory to improve CPU consumption for large zone insertions
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index f07bd3ef3..38346ada3 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -558,6 +558,25 @@ GNUNET_GNSRECORD_block_create (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
558 558
559 559
560/** 560/**
561 * Sign name and records, cache derived public key (also keeps the
562 * private key in static memory, so do not use this function if
563 * keeping the private key in the process'es RAM is a major issue).
564 *
565 * @param key the private key
566 * @param expire block expiration
567 * @param label the name for the records
568 * @param rd record data
569 * @param rd_count number of records in @a rd
570 */
571struct GNUNET_GNSRECORD_Block *
572GNUNET_GNSRECORD_block_create2 (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
573 struct GNUNET_TIME_Absolute expire,
574 const char *label,
575 const struct GNUNET_GNSRECORD_Data *rd,
576 unsigned int rd_count);
577
578
579/**
561 * Check if a signature is valid. This API is used by the GNS Block 580 * Check if a signature is valid. This API is used by the GNS Block
562 * to validate signatures received from the network. 581 * to validate signatures received from the network.
563 * 582 *