![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "qtypes.h"Go to the source code of this file.
Macros | |
| #define | HMAC_MDFOUR_16BYTES(out, in, n, key, k) |
| #define | HMAC_SHA256_32BYTES(out, in, n, key, k) |
Typedefs | |
| typedef void(* | hashfunc_t) (unsigned char *out, const unsigned char *in, int n) |
Functions | |
| qbool | hmac (hashfunc_t hfunc, int hlen, int hblock, unsigned char *out, const unsigned char *in, int n, const unsigned char *key, int k) |
| #define HMAC_MDFOUR_16BYTES | ( | out, | |
| in, | |||
| n, | |||
| key, | |||
| k ) |
Definition at line 14 of file hmac.h.
Referenced by CL_Rcon_f(), hmac_mdfour_challenge_matching(), hmac_mdfour_time_matching(), and NetConn_ClientParsePacket().
| #define HMAC_SHA256_32BYTES | ( | out, | |
| in, | |||
| n, | |||
| key, | |||
| k ) |
Definition at line 15 of file hmac.h.
Referenced by Crypto_DecryptPacket(), and Crypto_EncryptPacket().
| qbool hmac | ( | hashfunc_t | hfunc, |
| int | hlen, | ||
| int | hblock, | ||
| unsigned char * | out, | ||
| const unsigned char * | in, | ||
| int | n, | ||
| const unsigned char * | key, | ||
| int | k ) |
Definition at line 4 of file hmac.c.
References max, Mem_Alloc, Mem_Free, n, and tempmempool.