|
|
|
@ -553,7 +553,7 @@ namespace garlic
@@ -553,7 +553,7 @@ namespace garlic
|
|
|
|
|
if (!session->HandleNextMessage (buf, length, nullptr, 0)) |
|
|
|
|
{ |
|
|
|
|
// try to gererate more tags for last tagset
|
|
|
|
|
if (m_LastTagset && m_LastTagset->GetNextIndex () < 2*ECIESX25519_TAGSET_MAX_NUM_TAGS) |
|
|
|
|
if (m_LastTagset && (m_LastTagset->GetNextIndex () - m_LastTagset->GetTrimBehind () < 3*ECIESX25519_MAX_NUM_GENERATED_TAGS)) |
|
|
|
|
{ |
|
|
|
|
auto maxTags = std::max (m_NumRatchetInboundTags, ECIESX25519_MAX_NUM_GENERATED_TAGS); |
|
|
|
|
LogPrint (eLogWarning, "Garlic: trying to generate more ECIES-X25519-AEAD-Ratchet tags"); |
|
|
|
|