~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to libclamav/md5.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This is an OpenSSL-compatible implementation of the RSA Data Security,
3
 
 * Inc. MD5 Message-Digest Algorithm (RFC 1321).
4
 
 *
5
 
 * Written by Solar Designer <solar at openwall.com> in 2001, and placed
6
 
 * in the public domain.  There's absolutely no warranty.
7
 
 *
8
 
 * Updated in 2012 to meet the needs of ClamAV.
9
 
 *
10
 
 * See md5.c for more information.
11
 
 */
12
 
 
13
 
#ifndef __MD5_H
14
 
#define __MD5_H
15
 
 
16
 
/* Any 32-bit or wider unsigned integer data type will do */
17
 
typedef unsigned int MD5_u32plus;
18
 
 
19
 
typedef struct {
20
 
        MD5_u32plus lo, hi;
21
 
        MD5_u32plus a, b, c, d;
22
 
        unsigned char buffer[64];
23
 
        MD5_u32plus block[16];
24
 
} cli_md5_ctx;
25
 
 
26
 
extern void cli_md5_init(cli_md5_ctx *ctx);
27
 
extern int cli_md5_update(cli_md5_ctx *ctx, const void *data, unsigned long size);
28
 
extern void cli_md5_final(unsigned char *result, cli_md5_ctx *ctx);
29
 
 
30
 
#endif