refresh offline transient on destination service

This commit is contained in:
acetone
2026-06-22 21:57:06 +03:00
parent 4941e1307b
commit 6d79da0e2f
3 changed files with 25 additions and 9 deletions
+11
View File
@@ -643,6 +643,17 @@ namespace data
m_Signer->Sign (buf, len, signature);
}
void PrivateKeys::UpdateOfflineSignature (const PrivateKeys& other)
{
// same identity (m_Public): refresh only the transient material and the signer
m_SigningPrivateKey = other.m_SigningPrivateKey;
m_OfflineSignature = other.m_OfflineSignature;
m_TransientSignatureLen = other.m_TransientSignatureLen;
m_TransientSigningPrivateKeyLen = other.m_TransientSigningPrivateKeyLen;
m_Signer = nullptr;
CreateSigner ();
}
void PrivateKeys::CreateSigner () const
{
if (IsOfflineSignature ())