FireBirdLib - Topfield TMS PVR TAP Programming Library
OATH.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
dword
OATH
(
register
unsigned
char
*data,
int
len, dword hash)
4
{
5
TRACEENTER
();
6
7
register
int
i;
8
9
for
(i=0; i<len; ++i)
10
{
11
hash += *data++;
12
hash += (hash<<10);
13
hash ^= (hash>>6);
14
}
15
hash += (hash<<3);
16
hash ^= (hash>>11);
17
hash += (hash<<15);
18
19
TRACEEXIT
();
20
return
hash;
21
}
OATH
dword OATH(register unsigned char *data, int len, dword hash)
Definition:
OATH.c:3
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
compression
OATH.c
Generated on Fri Apr 29 2022 13:34:00 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3