~ubuntu-branches/ubuntu/feisty/dovecot/feisty-security

« back to all changes in this revision

Viewing changes to src/lib/md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-11-27 20:47:11 UTC
  • mfrom: (1.10.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061127204711-z7alg32xp4tnftjs
Tags: 1.0.rc15-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - snakeoil ssl
  - Remove stop script symlinks from rc0 and rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifndef __MD5_H
10
10
#define __MD5_H
11
11
 
 
12
#define MD5_RESULTLEN (128/8)
 
13
 
12
14
struct md5_context {
13
15
        uint_fast32_t lo, hi;
14
16
        uint_fast32_t a, b, c, d;
15
17
        unsigned char buffer[64];
16
 
        uint_fast32_t block[16];
 
18
        uint_fast32_t block[MD5_RESULTLEN];
17
19
};
18
20
 
19
21
void md5_init(struct md5_context *ctx);
20
22
void md5_update(struct md5_context *ctx, const void *data, size_t size);
21
 
void md5_final(struct md5_context *ctx, unsigned char result[16]);
 
23
void md5_final(struct md5_context *ctx, unsigned char result[MD5_RESULTLEN]);
22
24
 
23
 
void md5_get_digest(const void *data, size_t size, unsigned char result[16]);
 
25
void md5_get_digest(const void *data, size_t size,
 
26
                    unsigned char result[MD5_RESULTLEN]);
24
27
 
25
28
#endif