diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-05-29 08:18:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-05-29 08:18:55 +0000 |
commit | 022002438e4047d235a688cfd9da7b63ab990103 (patch) | |
tree | 8d0cb444a3ab376b5a8f614fb87bdeb31e7b3327 /src/gns/gns_api.c | |
parent | b62eb443ee3af84f87030fad9fd11a948b1a2503 (diff) | |
download | gnunet-022002438e4047d235a688cfd9da7b63ab990103.tar.gz gnunet-022002438e4047d235a688cfd9da7b63ab990103.zip |
-switching GNS from RSA to ECC
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r-- | src/gns/gns_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index 1e3cb0169..fe378a922 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c | |||
@@ -823,7 +823,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | |||
823 | struct GNUNET_CRYPTO_ShortHashCode *zone, | 823 | struct GNUNET_CRYPTO_ShortHashCode *zone, |
824 | enum GNUNET_GNS_RecordType type, | 824 | enum GNUNET_GNS_RecordType type, |
825 | int only_cached, | 825 | int only_cached, |
826 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | 826 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key, |
827 | GNUNET_GNS_LookupResultProcessor proc, | 827 | GNUNET_GNS_LookupResultProcessor proc, |
828 | void *proc_cls) | 828 | void *proc_cls) |
829 | { | 829 | { |
@@ -832,7 +832,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | |||
832 | struct GNUNET_GNS_LookupRequest *lr; | 832 | struct GNUNET_GNS_LookupRequest *lr; |
833 | size_t msize; | 833 | size_t msize; |
834 | struct PendingMessage *pending; | 834 | struct PendingMessage *pending; |
835 | struct GNUNET_CRYPTO_RsaPrivateKeyBinaryEncoded *pkey_enc; | 835 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *pkey_enc; |
836 | size_t key_len; | 836 | size_t key_len; |
837 | char* pkey_tmp; | 837 | char* pkey_tmp; |
838 | 838 | ||
@@ -843,9 +843,9 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | |||
843 | } | 843 | } |
844 | if (NULL != shorten_key) | 844 | if (NULL != shorten_key) |
845 | { | 845 | { |
846 | pkey_enc = GNUNET_CRYPTO_rsa_encode_key (shorten_key); | 846 | pkey_enc = GNUNET_CRYPTO_ecc_encode_key (shorten_key); |
847 | GNUNET_assert (pkey_enc != NULL); | 847 | GNUNET_assert (pkey_enc != NULL); |
848 | key_len = ntohs (pkey_enc->len); | 848 | key_len = ntohs (pkey_enc->size); |
849 | } | 849 | } |
850 | else | 850 | else |
851 | { | 851 | { |
@@ -927,7 +927,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
927 | const char *name, | 927 | const char *name, |
928 | enum GNUNET_GNS_RecordType type, | 928 | enum GNUNET_GNS_RecordType type, |
929 | int only_cached, | 929 | int only_cached, |
930 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | 930 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key, |
931 | GNUNET_GNS_LookupResultProcessor proc, | 931 | GNUNET_GNS_LookupResultProcessor proc, |
932 | void *proc_cls) | 932 | void *proc_cls) |
933 | { | 933 | { |