Last change
on this file was 11641, checked in by bust3d, 4 years ago |
-fix mdc2.h
|
-
Property svn:eol-style
set to
LF
|
File size:
619 bytes
|
Line | |
---|
1 | #ifndef _CSCRYPT_MD5_H
|
---|
2 | #define _CSCRYPT_MD5_H
|
---|
3 |
|
---|
4 | #if defined(WITH_SSL) || defined(WITH_LIBCRYPTO)
|
---|
5 | #include <openssl/md5.h>
|
---|
6 | #else
|
---|
7 | #define MD5_DIGEST_LENGTH 16
|
---|
8 |
|
---|
9 | unsigned char *MD5(const unsigned char *input, unsigned long len, unsigned char *output_hash);
|
---|
10 |
|
---|
11 | typedef struct MD5Context {
|
---|
12 | uint32_t buf[4];
|
---|
13 | uint32_t bits[2];
|
---|
14 | uint32_t in[16];
|
---|
15 | } MD5_CTX;
|
---|
16 |
|
---|
17 | void MD5_Init(MD5_CTX *ctx);
|
---|
18 | void MD5_Update(MD5_CTX *ctx, const unsigned char *buf, unsigned int len);
|
---|
19 | void MD5_Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx);
|
---|
20 | #endif
|
---|
21 | char *__md5_crypt(const char *text_pass, const char *salt, char *crypted_passwd);
|
---|
22 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.