blob: eb1db0f1ef4642071df11ba56a18581b1b68ab92 [file] [log] [blame]
Paul Bakker17373852011-01-06 14:20:01 +00001/**
2 * \file md_wrap.h
Paul Bakker9af723c2014-05-01 13:03:14 +02003 *
Paul Bakker17373852011-01-06 14:20:01 +00004 * \brief Message digest wrappers.
5 *
6 * \author Adriaan de Jong <dejong@fox-it.com>
7 *
Paul Bakkercce9d772011-11-18 14:26:47 +00008 * Copyright (C) 2006-2011, Brainspark B.V.
Paul Bakker17373852011-01-06 14:20:01 +00009 *
10 * This file is part of PolarSSL (http://www.polarssl.org)
11 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
12 *
13 * All rights reserved.
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License along
26 * with this program; if not, write to the Free Software Foundation, Inc.,
27 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 */
Paul Bakkercce9d772011-11-18 14:26:47 +000029#ifndef POLARSSL_MD_WRAP_H
30#define POLARSSL_MD_WRAP_H
Paul Bakker17373852011-01-06 14:20:01 +000031
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020032#if !defined(POLARSSL_CONFIG_FILE)
Paul Bakker314052f2011-08-15 09:07:52 +000033#include "config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020034#else
35#include POLARSSL_CONFIG_FILE
36#endif
Paul Bakker314052f2011-08-15 09:07:52 +000037#include "md.h"
Paul Bakker17373852011-01-06 14:20:01 +000038
Paul Bakker17373852011-01-06 14:20:01 +000039#ifdef __cplusplus
40extern "C" {
41#endif
42
43#if defined(POLARSSL_MD2_C)
44extern const md_info_t md2_info;
45#endif
46#if defined(POLARSSL_MD4_C)
47extern const md_info_t md4_info;
48#endif
49#if defined(POLARSSL_MD5_C)
50extern const md_info_t md5_info;
51#endif
Paul Bakker61b699e2014-01-22 13:35:29 +010052#if defined(POLARSSL_RIPEMD160_C)
53extern const md_info_t ripemd160_info;
Manuel Pégourié-Gonnarde4d47a62014-01-17 20:41:32 +010054#endif
Paul Bakker17373852011-01-06 14:20:01 +000055#if defined(POLARSSL_SHA1_C)
56extern const md_info_t sha1_info;
57#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020058#if defined(POLARSSL_SHA256_C)
Paul Bakker17373852011-01-06 14:20:01 +000059extern const md_info_t sha224_info;
60extern const md_info_t sha256_info;
61#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020062#if defined(POLARSSL_SHA512_C)
Paul Bakker17373852011-01-06 14:20:01 +000063extern const md_info_t sha384_info;
64extern const md_info_t sha512_info;
65#endif
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* POLARSSL_MD_WRAP_H */