summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-05-19 15:32:52 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-05-19 15:32:52 -0700
commit5e6a2a17b02904b5349f379ff6f6d91a4c849067 (patch)
treec2c7b7b6857c65524b5a5add6de3f9dbebf802c7 /node/Cluster.cpp
parent92289c1981efef87ee48401f9b5e4051cd2ec86c (diff)
downloadinfinitytier-5e6a2a17b02904b5349f379ff6f6d91a4c849067.tar.gz
infinitytier-5e6a2a17b02904b5349f379ff6f6d91a4c849067.zip
Cluster build fix.
Diffstat (limited to 'node/Cluster.cpp')
-rw-r--r--node/Cluster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp
index 4d2dea76..119aec29 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -257,7 +257,7 @@ void Cluster::handleIncomingStateMessage(const void *msg,unsigned int len)
memcpy(keytmp,_key,32);
for(int i=0;i<8;++i)
keytmp[i] ^= reinterpret_cast<const char *>(msg)[i];
- Salsa20 s20(keytmp,256,reinterpret_cast<const char *>(msg) + 8);
+ Salsa20 s20(keytmp,reinterpret_cast<const char *>(msg) + 8);
Utils::burn(keytmp,sizeof(keytmp));
// One-time-use Poly1305 key from first 32 bytes of Salsa20 keystream (as per DJB/NaCl "standard")
@@ -956,7 +956,7 @@ void Cluster::_flush(uint16_t memberId)
memcpy(keytmp,m.key,32);
for(int i=0;i<8;++i)
keytmp[i] ^= m.q[i];
- Salsa20 s20(keytmp,256,m.q.field(8,8));
+ Salsa20 s20(keytmp,m.q.field(8,8));
Utils::burn(keytmp,sizeof(keytmp));
// One-time-use Poly1305 key from first 32 bytes of Salsa20 keystream (as per DJB/NaCl "standard")