| 1 | /* | 
|---|
| 2 | * This Source Code Form is subject to the terms of the Mozilla Public | 
|---|
| 3 | * License, v. 2.0.  If a copy of the MPL was not distributed with this | 
|---|
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef _SEEN_MCRYPT_H | 
|---|
| 10 | #define _SEEN_MCRYPT_H 1 | 
|---|
| 11 |  | 
|---|
| 12 | #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) | 
|---|
| 13 | #if !defined(LIBMAPI) && !defined(LIBMCRYPT) | 
|---|
| 14 | #define mcrypt_export extern __declspec(dllimport) | 
|---|
| 15 | #else | 
|---|
| 16 | #define mcrypt_export extern __declspec(dllexport) | 
|---|
| 17 | #endif | 
|---|
| 18 | #else | 
|---|
| 19 | #define mcrypt_export extern | 
|---|
| 20 | #endif | 
|---|
| 21 |  | 
|---|
| 22 | mcrypt_export const char *mcrypt_getHashAlgorithms(void); | 
|---|
| 23 | mcrypt_export char *mcrypt_MD5Sum(const char *string, size_t len); | 
|---|
| 24 | mcrypt_export char *mcrypt_SHA1Sum(const char *string, size_t len); | 
|---|
| 25 | mcrypt_export char *mcrypt_SHA224Sum(const char *string, size_t len); | 
|---|
| 26 | mcrypt_export char *mcrypt_SHA256Sum(const char *string, size_t len); | 
|---|
| 27 | mcrypt_export char *mcrypt_SHA384Sum(const char *string, size_t len); | 
|---|
| 28 | mcrypt_export char *mcrypt_SHA512Sum(const char *string, size_t len); | 
|---|
| 29 | mcrypt_export char *mcrypt_RIPEMD160Sum(const char *string, size_t len); | 
|---|
| 30 | mcrypt_export char *mcrypt_BackendSum(const char *string, size_t len); | 
|---|
| 31 | mcrypt_export char *mcrypt_hashPassword(const char *algo, const char *password, const char *challenge); | 
|---|
| 32 | #endif | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|