mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:05:10 +00:00
[MOD] HMAC-based mediachecking
This commit is contained in:
parent
692cb8aa6f
commit
39cc04fc2e
6 changed files with 115 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue