correct receive ratchet tagsetid calculation

This commit is contained in:
orignal 2024-08-06 13:58:21 -04:00
parent 3c69e0b2af
commit 349c4e30b6
2 changed files with 5 additions and 4 deletions

View file

@ -149,6 +149,7 @@ namespace garlic
std::shared_ptr<i2p::crypto::X25519Keys> key;
uint8_t remote[32]; // last remote public key
bool newKey = true;
int GetReceiveTagSetID () const { return newKey ? (2*keyID + 1) : 2*keyID; }
};
public: