Skip to content

Commit

Permalink
feat: Change encryption to AEAD XChaCha20 Poly1305 (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored Sep 21, 2024
2 parents 7784e03 + 454fce4 commit ce18453
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 127 deletions.
11 changes: 11 additions & 0 deletions include/dpp/discordvoiceclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ class DPP_EXPORT discord_voice_client : public websocket_client
*/
uint32_t timestamp;

/**
* @brief Each packet should have a nonce, a 32-bit incremental
* integer value appended to payload.
*
* We should keep track of this value and increment it for each
* packet sent.
*
* Current initial value is hardcoded to 1.
*/
uint32_t packet_nonce;

/**
* @brief Last sent packet high-resolution timestamp
*/
Expand Down
Loading

0 comments on commit ce18453

Please sign in to comment.