#include "platform.h"#include "gnunet_util_lib.h"#include "gnunet_signatures.h"#include "gnunet_revocation_service.h"#include "gnunet_testing_lib.h"#include "../../lib/gnsrecord/gnsrecord_crypto.h"#include <inttypes.h>Go to the source code of this file.
Macros | |
| #define | TEST_EPOCHS 2 |
| #define | TEST_DIFFICULTY 5 |
Functions | |
| int | parsehex (char *src, char *dst, size_t dstlen, int invert) |
| static void | print_bytes_ (void *buf, size_t buf_len, int fold, int in_be) |
| static void | print_bytes (void *buf, size_t buf_len, int fold) |
| static void | run_with_key (struct GNUNET_CRYPTO_BlindablePrivateKey *id_priv) |
| static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
| Main function that will be run. | |
| int | main (int argc, char *const *argv) |
| The main function of the test vector generation tool. | |
Variables | |
| static char * | d_pkey |
| static char * | d_edkey |
| #define TEST_EPOCHS 2 |
Definition at line 35 of file gnunet-revocation-tvg.c.
| #define TEST_DIFFICULTY 5 |
Definition at line 36 of file gnunet-revocation-tvg.c.
| int parsehex | ( | char * | src, |
| char * | dst, | ||
| size_t | dstlen, | ||
| int | invert | ||
| ) |
Definition at line 45 of file gnunet-revocation-tvg.c.
Referenced by run().
|
static |
Definition at line 66 of file gnunet-revocation-tvg.c.
Referenced by print_bytes(), and run().
|
static |
Definition at line 96 of file gnunet-revocation-tvg.c.
References print_bytes_().
Referenced by run(), and run_with_key().
|
static |
Definition at line 105 of file gnunet-revocation-tvg.c.
References GNR_create_signature_message(), GNUNET_assert, GNUNET_CRYPTO_blindable_key_get_public(), GNUNET_CRYPTO_public_key_get_length(), GNUNET_free, GNUNET_GNSRECORD_check_pow(), GNUNET_GNSRECORD_pow_init(), GNUNET_GNSRECORD_pow_round(), GNUNET_GNSRECORD_pow_start(), GNUNET_GNSRECORD_proof_get_size(), GNUNET_malloc, GNUNET_MAX_POW_SIZE, GNUNET_OK, GNUNET_STRINGS_data_to_string(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_YEARS, GNUNET_YES, GNUNET_GNSRECORD_PowP::pow, pow_passes, print_bytes(), GNUNET_GNSRECORD_SignaturePurposePS::purpose, GNUNET_CRYPTO_SignaturePurpose::size, TEST_DIFFICULTY, and TEST_EPOCHS.
Referenced by run().
|
static |
Main function that will be run.
| cls | closure |
| args | remaining command-line arguments |
| cfgfile | name of the configuration file used (for saving, can be NULL!) |
| cfg | configuration |
Definition at line 177 of file gnunet-revocation-tvg.c.
References d_edkey, d_pkey, GNUNET_CRYPTO_BlindablePrivateKey::ecdsa_key, GNUNET_CRYPTO_BlindablePrivateKey::eddsa_key, GNUNET_PUBLIC_KEY_TYPE_ECDSA, GNUNET_PUBLIC_KEY_TYPE_EDDSA, parsehex(), print_bytes(), print_bytes_(), run_with_key(), and GNUNET_CRYPTO_BlindablePrivateKey::type.
Referenced by main().
| int main | ( | int | argc, |
| char *const * | argv | ||
| ) |
The main function of the test vector generation tool.
| argc | number of arguments from the command line |
| argv | command line arguments |
Definition at line 208 of file gnunet-revocation-tvg.c.
References GNUNET_assert, GNUNET_GETOPT_OPTION_END, GNUNET_log_setup(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), options, and run().
|
static |
Definition at line 38 of file gnunet-revocation-tvg.c.
Referenced by run().
|
static |
Definition at line 41 of file gnunet-revocation-tvg.c.
Referenced by run().