~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/modules/pam_pwdb/md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MD5_H
 
2
#define MD5_H
 
3
 
 
4
typedef unsigned int uint32;
 
5
 
 
6
struct MD5Context {
 
7
    uint32 buf[4];
 
8
    uint32 bits[2];
 
9
    unsigned char in[64];
 
10
};
 
11
 
 
12
void GoodMD5Init(struct MD5Context *);
 
13
void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
 
14
void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
 
15
void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
 
16
void BrokenMD5Init(struct MD5Context *);
 
17
void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
 
18
void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
 
19
void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
 
20
 
 
21
char *Goodcrypt_md5(const char *pw, const char *salt);
 
22
char *Brokencrypt_md5(const char *pw, const char *salt);
 
23
 
 
24
/*
 
25
* This is needed to make RSAREF happy on some MS-DOS compilers.
 
26
*/
 
27
 
 
28
typedef struct MD5Context MD5_CTX;
 
29
 
 
30
#endif /* MD5_H */