common HKDF context for ratchets tags

This commit is contained in:
orignal
2026-08-08 16:52:28 -04:00
parent cfcc88029c
commit e32e694a83
6 changed files with 77 additions and 45 deletions
+1 -1
View File
@@ -1067,7 +1067,7 @@ namespace garlic
uint64_t GarlicDestination::AddECIESx25519SessionNextTag (ReceiveRatchetTagSetPtr tagset)
{
auto index = tagset->GetNextIndex ();
uint64_t tag = tagset->GetNextSessionTag ();
uint64_t tag = tagset->GetNextSessionTag (m_HKDFContext);
if (tag)
m_ECIESx25519Tags.emplace (tag, ECIESX25519AEADRatchetIndexTagset{index, tagset});
return tag;