Skip to content

Commit ce18453

Browse files
feat: Change encryption to AEAD XChaCha20 Poly1305 (#1239)
2 parents 7784e03 + 454fce4 commit ce18453

File tree

2 files changed

+195
-127
lines changed

2 files changed

+195
-127
lines changed

include/dpp/discordvoiceclient.h

+11
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,17 @@ class DPP_EXPORT discord_voice_client : public websocket_client
346346
*/
347347
uint32_t timestamp;
348348

349+
/**
350+
* @brief Each packet should have a nonce, a 32-bit incremental
351+
* integer value appended to payload.
352+
*
353+
* We should keep track of this value and increment it for each
354+
* packet sent.
355+
*
356+
* Current initial value is hardcoded to 1.
357+
*/
358+
uint32_t packet_nonce;
359+
349360
/**
350361
* @brief Last sent packet high-resolution timestamp
351362
*/

0 commit comments

Comments
 (0)