[MOD] HMAC-based mediachecking

This commit is contained in:
LDA 2024-08-25 23:00:31 +02:00
commit 39cc04fc2e
6 changed files with 115 additions and 9 deletions

View file

@ -361,4 +361,12 @@ extern char * ParseeGenerateMTO(char *common_id);
* Modifies: the Parsee config */
extern void ParseeSetThreads(int xmpp, int http);
/** Computes an HMAC (with SHA-256) with a known key, and a generic message.
* --------------
* Returns: a hex representation of the HMAC[HEAP].
* Thrasher: Free
* Modifies: NOTHING */
extern char * ParseeHMAC(char *key, uint8_t *msg, size_t msglen);
#define ParseeHMACS(key, msg) ParseeHMAC(key, (uint8_t *) msg, strlen(msg))
#endif