Adding inner symetric encryption
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2026-03-04 21:40:26 +01:00
parent 5748ead926
commit c0dcfe997c
3 changed files with 45 additions and 5 deletions

View File

@@ -238,6 +238,9 @@ func (ps *PeerStorage) FinalizeInvitation(ReceivedContact *meowlib.ContactCard)
ps.cache[i].ContactEncryption = ReceivedContact.EncryptionPublicKey
ps.cache[i].ContactLookupKey = ReceivedContact.LookupPublicKey
ps.cache[i].ContactPublicKey = ReceivedContact.ContactPublicKey
if ps.cache[i].MySymKey == "" {
ps.cache[i].MySymKey = ReceivedContact.SymetricKey
}
srvs := []string{}
for srv := range ReceivedContact.PullServers {
srvs = append(srvs, ReceivedContact.PullServers[srv].GetUid())