From 919bc46422fc80fb1ce71a399357d389391a5db9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 19 Aug 2013 08:07:54 +0000 Subject: [PATCH] fix key length issue --- include/libtorrent/kademlia/node.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/kademlia/node.hpp b/include/libtorrent/kademlia/node.hpp index 3c5c4537b..d6b3b4c62 100644 --- a/include/libtorrent/kademlia/node.hpp +++ b/include/libtorrent/kademlia/node.hpp @@ -131,17 +131,17 @@ struct dht_immutable_item int size; }; -struct rsa_key { char bytes[268]; }; +struct ed25519_public_key { char bytes[32]; }; struct dht_mutable_item : dht_immutable_item { char sig[64]; int seq; - rsa_key key; + ed25519_public_key key; }; // internal -inline bool operator<(rsa_key const& lhs, rsa_key const& rhs) +inline bool operator<(ed25519_public_key const& lhs, ed25519_public_key const& rhs) { return memcmp(lhs.bytes, rhs.bytes, sizeof(lhs.bytes)) < 0; }