diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
commit | 9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch) | |
tree | 68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/regex/regex_internal_dht.c | |
parent | 8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff) | |
download | gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip |
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r-- | src/regex/regex_internal_dht.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c index 55ca426cb..e87881902 100644 --- a/src/regex/regex_internal_dht.c +++ b/src/regex/regex_internal_dht.c | |||
@@ -62,7 +62,7 @@ struct REGEX_INTERNAL_Announcement | |||
62 | /** | 62 | /** |
63 | * Our private key. | 63 | * Our private key. |
64 | */ | 64 | */ |
65 | const struct GNUNET_CRYPTO_EccPrivateKey *priv; | 65 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv; |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Optional statistics handle to report usage. Can be NULL. | 68 | * Optional statistics handle to report usage. Can be NULL. |
@@ -121,10 +121,10 @@ regex_iterator (void *cls, | |||
121 | ab.purpose.purpose = ntohl (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT); | 121 | ab.purpose.purpose = ntohl (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT); |
122 | ab.expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_DHT_MAX_EXPIRATION)); | 122 | ab.expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_DHT_MAX_EXPIRATION)); |
123 | ab.key = *key; | 123 | ab.key = *key; |
124 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (h->priv, | 124 | GNUNET_CRYPTO_eddsa_key_get_public (h->priv, |
125 | &ab.peer.public_key); | 125 | &ab.peer.public_key); |
126 | GNUNET_assert (GNUNET_OK == | 126 | GNUNET_assert (GNUNET_OK == |
127 | GNUNET_CRYPTO_ecc_sign (h->priv, | 127 | GNUNET_CRYPTO_eddsa_sign (h->priv, |
128 | &ab.purpose, | 128 | &ab.purpose, |
129 | &ab.signature)); | 129 | &ab.signature)); |
130 | 130 | ||
@@ -179,7 +179,7 @@ regex_iterator (void *cls, | |||
179 | */ | 179 | */ |
180 | struct REGEX_INTERNAL_Announcement * | 180 | struct REGEX_INTERNAL_Announcement * |
181 | REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, | 181 | REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, |
182 | const struct GNUNET_CRYPTO_EccPrivateKey *priv, | 182 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv, |
183 | const char *regex, | 183 | const char *regex, |
184 | uint16_t compression, | 184 | uint16_t compression, |
185 | struct GNUNET_STATISTICS_Handle *stats) | 185 | struct GNUNET_STATISTICS_Handle *stats) |