delete symmkey on cleanup

This commit is contained in:
orignal 2020-09-08 07:46:55 -04:00
parent a05a54b38e
commit da1e52357f
3 changed files with 13 additions and 2 deletions

View file

@ -817,7 +817,10 @@ namespace garlic
for (auto it = m_ECIESx25519Tags.begin (); it != m_ECIESx25519Tags.end ();)
{
if (it->second.tagset->IsExpired (ts) || it->second.tagset->IsIndexExpired (it->second.index))
{
it->second.tagset->DeleteSymmKey (it->second.index);
it = m_ECIESx25519Tags.erase (it);
}
else
++it;
}