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
22mcrypt_export const char *mcrypt_getHashAlgorithms(void);
23mcrypt_export char *mcrypt_MD5Sum(const char *string, size_t len);
24mcrypt_export char *mcrypt_SHA1Sum(const char *string, size_t len);
25mcrypt_export char *mcrypt_SHA224Sum(const char *string, size_t len);
26mcrypt_export char *mcrypt_SHA256Sum(const char *string, size_t len);
27mcrypt_export char *mcrypt_SHA384Sum(const char *string, size_t len);
28mcrypt_export char *mcrypt_SHA512Sum(const char *string, size_t len);
29mcrypt_export char *mcrypt_RIPEMD160Sum(const char *string, size_t len);
30mcrypt_export char *mcrypt_BackendSum(const char *string, size_t len);
31mcrypt_export char *mcrypt_hashPassword(const char *algo, const char *password, const char *challenge);
32#endif
33
34