Problem: curve messages can be replayed

Solution: ensure message short nonces are strictly increasing and validate them
This commit is contained in:
Matthew Hawn
2014-09-19 18:07:57 -06:00
parent fe4396c597
commit 0900a48921
4 changed files with 30 additions and 9 deletions

View File

@@ -90,6 +90,7 @@ namespace zmq
std::string status_code;
uint64_t cn_nonce;
uint64_t cn_peer_nonce;
// Our secret key (s)
uint8_t secret_key [crypto_box_SECRETKEYBYTES];