~ubuntu-branches/ubuntu/trusty/libpam-tacplus/trusty

« back to all changes in this revision

Viewing changes to libtac/lib/md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeroen Nijhof
  • Date: 2011-09-05 16:01:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110905160100-7o4aqefbiflj4232
Tags: upstream-1.3.5
ImportĀ upstreamĀ versionĀ 1.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* md5.h - header file for implementation of MD5
 
2
 * 
 
3
 * Copyright (C) 1990, RSA Data Security, Inc.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program - see the file COPYING.
 
17
 *
 
18
 * See `CHANGES' file for revision history.
 
19
 */
 
20
 
 
21
#ifndef __MD5_INCLUDE__
 
22
 
 
23
/* typedef a 32-bit type */
 
24
typedef unsigned int UINT4;
 
25
 
 
26
/* Data structure for MD5 (Message-Digest) computation */
 
27
typedef struct {
 
28
    UINT4 i[2];               /* number of _bits_ handled mod 2^64 */
 
29
    UINT4 buf[4];             /* scratch buffer */
 
30
    unsigned char in[64];     /* input buffer */
 
31
    unsigned char digest[16]; /* actual digest after MD5Final call */
 
32
} MD5_CTX;
 
33
 
 
34
__BEGIN_DECLS
 
35
void MD5Init __P((MD5_CTX*));
 
36
void MD5Update __P((MD5_CTX*, unsigned char*, UINT4));
 
37
void MD5Final __P((unsigned char[], MD5_CTX*));
 
38
__END_DECLS
 
39
 
 
40
#define MD5_LEN 16
 
41
 
 
42
#define __MD5_INCLUDE__
 
43
#endif /* __MD5_INCLUDE__ */