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/namestore/test_namestore_api_put.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/namestore/test_namestore_api_put.c')
-rw-r--r-- | src/namestore/test_namestore_api_put.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_put.c b/src/namestore/test_namestore_api_put.c index e3610ccaf..983ea6804 100644 --- a/src/namestore/test_namestore_api_put.c +++ b/src/namestore/test_namestore_api_put.c | |||
@@ -41,9 +41,9 @@ static struct GNUNET_NAMESTORE_Handle * nsh; | |||
41 | 41 | ||
42 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 42 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; |
43 | 43 | ||
44 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; | 44 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; |
45 | 45 | ||
46 | static struct GNUNET_CRYPTO_EccPublicSignKey pubkey; | 46 | static struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; |
47 | 47 | ||
48 | static struct GNUNET_NAMESTORE_RecordData *s_rd; | 48 | static struct GNUNET_NAMESTORE_RecordData *s_rd; |
49 | 49 | ||
@@ -135,7 +135,7 @@ run (void *cls, | |||
135 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 135 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
136 | struct GNUNET_TESTING_Peer *peer) | 136 | struct GNUNET_TESTING_Peer *peer) |
137 | { | 137 | { |
138 | struct GNUNET_CRYPTO_EccSignature *signature; | 138 | struct GNUNET_CRYPTO_EcdsaSignature *signature; |
139 | char * s_name; | 139 | char * s_name; |
140 | int c; | 140 | int c; |
141 | char *hostkey_file; | 141 | char *hostkey_file; |
@@ -146,11 +146,11 @@ run (void *cls, | |||
146 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, | 146 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, |
147 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 147 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
149 | privkey = GNUNET_CRYPTO_ecc_key_create_from_file(hostkey_file); | 149 | privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file(hostkey_file); |
150 | GNUNET_assert (privkey != NULL); | 150 | GNUNET_assert (privkey != NULL); |
151 | GNUNET_free (hostkey_file); | 151 | GNUNET_free (hostkey_file); |
152 | /* get public key */ | 152 | /* get public key */ |
153 | GNUNET_CRYPTO_ecc_key_get_public_for_signature(privkey, &pubkey); | 153 | GNUNET_CRYPTO_ecdsa_key_get_public(privkey, &pubkey); |
154 | nsh = GNUNET_NAMESTORE_connect (cfg); | 154 | nsh = GNUNET_NAMESTORE_connect (cfg); |
155 | GNUNET_break (NULL != nsh); | 155 | GNUNET_break (NULL != nsh); |
156 | /* create record */ | 156 | /* create record */ |