store hash for ECDSA blidning

This commit is contained in:
orignal 2019-06-03 12:51:57 -04:00
parent c4dffa4dc8
commit 828862ea49
3 changed files with 32 additions and 19 deletions

View file

@ -463,7 +463,7 @@ namespace data
if (verified && key && lenOuterCiphertext >= 32)
{
SetIsValid (false); // we must verify it again in Layer 2
if (blindedKeyType == i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519)
if (blindedKeyType == key->GetBlindedSigType ())
{
// verify blinding
char date[9];
@ -476,6 +476,11 @@ namespace data
return;
}
}
else
{
LogPrint (eLogError, "LeaseSet2: Unexpected blinded key type ", blindedKeyType, " instread ", key->GetBlindedSigType ());
return;
}
// outer key
// outerInput = subcredential || publishedTimestamp
uint8_t subcredential[36];