From 3b2d98e7dcf4102f855006cc9f5d5000d8df0223 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 16 Sep 2013 09:20:59 -0400 Subject: Integrating new crypto -- work in progress, wont build yet. --- node/C25519.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'node/C25519.cpp') diff --git a/node/C25519.cpp b/node/C25519.cpp index 82ba7884..eab7d110 100644 --- a/node/C25519.cpp +++ b/node/C25519.cpp @@ -2311,13 +2311,13 @@ C25519::Pair C25519::generate() return kp; } -void C25519::agree(const C25519::Pair &mine,const C25519::Public &their,void *keybuf,unsigned int keylen) +void C25519::agree(const C25519::Private &mine,const C25519::Public &their,void *keybuf,unsigned int keylen) throw() { unsigned char rawkey[32]; unsigned char digest[64]; - crypto_scalarmult(rawkey,mine.priv.data,their.data); + crypto_scalarmult(rawkey,mine.data,their.data); SHA512::hash(digest,rawkey,32); for(unsigned int i=0,k=0;i