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/fs/fs_api.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/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 04057bc98..688bdf282 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -1477,7 +1477,7 @@ deserialize_publish_file (void *cls, const char *filename) | |||
1477 | int32_t all_done; | 1477 | int32_t all_done; |
1478 | int32_t have_ns; | 1478 | int32_t have_ns; |
1479 | char *fi_root; | 1479 | char *fi_root; |
1480 | struct GNUNET_CRYPTO_EccPrivateKey ns; | 1480 | struct GNUNET_CRYPTO_EcdsaPrivateKey ns; |
1481 | char *fi_pos; | 1481 | char *fi_pos; |
1482 | char *emsg; | 1482 | char *emsg; |
1483 | 1483 | ||
@@ -1522,7 +1522,7 @@ deserialize_publish_file (void *cls, const char *filename) | |||
1522 | } | 1522 | } |
1523 | if (GNUNET_YES == have_ns) | 1523 | if (GNUNET_YES == have_ns) |
1524 | { | 1524 | { |
1525 | pc->ns = GNUNET_new (struct GNUNET_CRYPTO_EccPrivateKey); | 1525 | pc->ns = GNUNET_new (struct GNUNET_CRYPTO_EcdsaPrivateKey); |
1526 | *pc->ns = ns; | 1526 | *pc->ns = ns; |
1527 | } | 1527 | } |
1528 | if ((0 == (pc->options & GNUNET_FS_PUBLISH_OPTION_SIMULATE_ONLY)) && | 1528 | if ((0 == (pc->options & GNUNET_FS_PUBLISH_OPTION_SIMULATE_ONLY)) && |
@@ -1637,7 +1637,7 @@ GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc) | |||
1637 | ( (NULL != pc->ns) && | 1637 | ( (NULL != pc->ns) && |
1638 | (GNUNET_OK != GNUNET_BIO_write (wh, | 1638 | (GNUNET_OK != GNUNET_BIO_write (wh, |
1639 | pc->ns, | 1639 | pc->ns, |
1640 | sizeof (struct GNUNET_CRYPTO_EccPrivateKey)) ) )) | 1640 | sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)) ) )) |
1641 | { | 1641 | { |
1642 | GNUNET_break (0); | 1642 | GNUNET_break (0); |
1643 | goto cleanup; | 1643 | goto cleanup; |