UFO: Alien Invasion
Loading...
Searching...
No Matches
md4.h
Go to the documentation of this file.
1/*
2 mdfour.h
3
4 an implementation of MD4 designed for use in the SMB authentication
5 protocol
6
7 Copyright (C) Andrew Tridgell 1997-1998
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18 See the GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to:
22
23 Free Software Foundation, Inc.
24 59 Temple Place - Suite 330
25 Boston, MA 02111-1307, USA
26*/
27
28#pragma once
29
30#include "../shared/ufotypes.h"
31
32#if SIZEOF_INT > 4
33#define LARGE_INT32
34#endif
35
36struct mdfour {
37 uint32_t A, B, C, D;
38 uint32_t totalN;
39};
40
41unsigned Com_BlockChecksum(const void* buffer, int length);
unsigned Com_BlockChecksum(const void *buffer, int length)
Definition md4.cpp:202
QGL_EXTERN GLuint GLsizei GLsizei * length
Definition r_gl.h:110
Definition md4.h:36
uint32_t B
Definition md4.h:37
uint32_t totalN
Definition md4.h:38
uint32_t D
Definition md4.h:37
uint32_t C
Definition md4.h:37
uint32_t A
Definition md4.h:37
Cross-platform type definitions.