From 8980b13bbf80c9528c3962517cd79727a8e1689a Mon Sep 17 00:00:00 2001 From: gardners Date: Wed, 16 May 2012 15:39:25 +0930 Subject: [PATCH] fixed BK calculation bug. now calculates BK correctly. --- rhizome.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhizome.c b/rhizome.c index 2a7fc1cb..16104969 100644 --- a/rhizome.c +++ b/rhizome.c @@ -273,7 +273,7 @@ int rhizome_add_manifest(rhizome_manifest *m_in, int len=crypto_sign_edwards25519sha512batch_SECRETKEYBYTES; unsigned char bkbytes[len]; if (!rhizome_bk_xor(author,m_in->cryptoSignPublic, - m_in->cryptoSignPublic, + m_in->cryptoSignSecret, bkbytes)) { WHYF("set BK='%s'",rhizome_bytes_to_hex(bkbytes,len)); rhizome_manifest_set(m_in,"BK",rhizome_bytes_to_hex(bkbytes,len));