]> icculus.org git repositories - divverent/darkplaces.git/blob - hmac.h
reworked default address cvars to be empty for default interfaces, this
[divverent/darkplaces.git] / hmac.h
1 #ifndef HMAC_H
2 #define HMAC_H
3
4 typedef void (*hashfunc_t) (unsigned char *out, unsigned char *in, int n);
5 qboolean hmac(
6         hashfunc_t hfunc, int hlen, int hblock,
7         unsigned char *out,
8         unsigned char *in, int n,
9         unsigned char *key, int k
10 );
11
12 #define HMAC_MDFOUR_16BYTES(out, in, n, key, k) hmac(mdfour, 16, 64, out, in, n, key, k)
13
14 #endif