memory, threading, network hardening

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
This commit is contained in:
Pavel Okhlopkov 2026-04-06 21:19:37 +03:00
parent 312994be83
commit 2e8856bacd
9 changed files with 135 additions and 24 deletions

View file

@ -48,6 +48,10 @@ public:
// Get session key (K) - used for encryption
std::vector<uint8_t> getSessionKey() const;
// Securely erase stored plaintext credentials from memory.
// Called automatically at the end of feed() once the SRP values are computed.
void clearCredentials();
private:
// WoW-specific SRP multiplier (k = 3)
static constexpr uint32_t K_VALUE = 3;