DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
hmac.h
Go to the documentation of this file.
1#ifndef HMAC_H
2#define HMAC_H
3
4#include "qtypes.h"
5
6typedef void (*hashfunc_t) (unsigned char *out, const unsigned char *in, int n);
8 hashfunc_t hfunc, int hlen, int hblock,
9 unsigned char *out,
10 const unsigned char *in, int n,
11 const unsigned char *key, int k
12);
13
14#define HMAC_MDFOUR_16BYTES(out, in, n, key, k) hmac(mdfour, 16, 64, out, in, n, key, k)
15#define HMAC_SHA256_32BYTES(out, in, n, key, k) hmac(sha256, 32, 64, out, in, n, key, k)
16
17#endif
void() predraw
#define n(x, y)
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 hmac.c:4
void(* hashfunc_t)(unsigned char *out, const unsigned char *in, int n)
Definition hmac.h:6
bool qbool
Definition qtypes.h:9