diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-02-05 20:49:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-02-05 20:49:21 +0000 |
commit | ca35f67faee8371fa763bdf49f04a8d5d4cdc021 (patch) | |
tree | 5535df5e5a2428ed838c6a0e60b2c6c68a7842c5 /src/include/gnunet_testing_lib.h | |
parent | dd7cca21c5dbaef4d56f92bab3932f0f73d092d1 (diff) | |
download | gnunet-ca35f67faee8371fa763bdf49f04a8d5d4cdc021.tar.gz gnunet-ca35f67faee8371fa763bdf49f04a8d5d4cdc021.zip |
switching to ECDHE cryptography f, implementation is incomplete and INSECURE, do not use for anything but testing
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 04a3e9942..47f05d49d 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -44,7 +44,13 @@ extern "C" | |||
44 | #endif | 44 | #endif |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #define GNUNET_TESTING_HOSTKEYFILESIZE 914 | 47 | /** |
48 | * Size of each hostkey in the hostkey file (in BYTES). This is the | ||
49 | * maximum length of the S-expressions generated by libgcrypt for the | ||
50 | * curves (rounded up to the next full KB to make IO nicer); it is NOT | ||
51 | * the number of bits in the key. | ||
52 | */ | ||
53 | #define GNUNET_TESTING_HOSTKEYFILESIZE 2048 | ||
48 | 54 | ||
49 | /** | 55 | /** |
50 | * Handle for a system on which GNUnet peers are executed; | 56 | * Handle for a system on which GNUnet peers are executed; |
@@ -138,7 +144,7 @@ GNUNET_TESTING_system_destroy (struct GNUNET_TESTING_System *system, | |||
138 | * key; if NULL, GNUNET_SYSERR is returned immediately | 144 | * key; if NULL, GNUNET_SYSERR is returned immediately |
139 | * @return NULL on error (not enough keys) | 145 | * @return NULL on error (not enough keys) |
140 | */ | 146 | */ |
141 | struct GNUNET_CRYPTO_RsaPrivateKey * | 147 | struct GNUNET_CRYPTO_EccPrivateKey * |
142 | GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | 148 | GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, |
143 | uint32_t key_number, | 149 | uint32_t key_number, |
144 | struct GNUNET_PeerIdentity *id); | 150 | struct GNUNET_PeerIdentity *id); |