fixed BK calculation bug. now calculates BK correctly.

This commit is contained in:
gardners 2012-05-16 15:39:25 +09:30
parent d51545b87a
commit 8980b13bbf

View File

@ -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));