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
6
typedef
void
(*
hashfunc_t
) (
unsigned
char
*out,
const
unsigned
char
*in,
int
n
);
7
qbool
hmac
(
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
void() predraw
n
#define n(x, y)
hmac
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
hashfunc_t
void(* hashfunc_t)(unsigned char *out, const unsigned char *in, int n)
Definition
hmac.h:6
qtypes.h
qbool
bool qbool
Definition
qtypes.h:9
hmac.h
Generated on Mon Mar 10 2025 16:50:16 for DarkPlaces by
1.12.0