blob: 0c2ced50b4a1b811b52c280fd2e8b3d6f9cd7f57 [file] [log] [blame]
Paul Bakker17373852011-01-06 14:20:01 +00001/**
2 * \file md_wrap.h
3 *
4 * \brief Message digest wrappers.
5 *
6 * \author Adriaan de Jong <dejong@fox-it.com>
7 *
Paul Bakker530927b2015-02-13 14:24:10 +01008 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
Paul Bakker17373852011-01-06 14:20:01 +00009 *
Manuel Pégourié-Gonnarde12abf92015-01-28 17:13:45 +000010 * This file is part of mbed TLS (https://polarssl.org)
Paul Bakker17373852011-01-06 14:20:01 +000011 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 */
Paul Bakkercce9d772011-11-18 14:26:47 +000026#ifndef POLARSSL_MD_WRAP_H
27#define POLARSSL_MD_WRAP_H
Paul Bakker17373852011-01-06 14:20:01 +000028
Paul Bakker314052f2011-08-15 09:07:52 +000029#include "config.h"
30#include "md.h"
Paul Bakker17373852011-01-06 14:20:01 +000031
Paul Bakker17373852011-01-06 14:20:01 +000032#ifdef __cplusplus
33extern "C" {
34#endif
35
36#if defined(POLARSSL_MD2_C)
37extern const md_info_t md2_info;
38#endif
39#if defined(POLARSSL_MD4_C)
40extern const md_info_t md4_info;
41#endif
42#if defined(POLARSSL_MD5_C)
43extern const md_info_t md5_info;
44#endif
45#if defined(POLARSSL_SHA1_C)
46extern const md_info_t sha1_info;
47#endif
48#if defined(POLARSSL_SHA2_C)
49extern const md_info_t sha224_info;
50extern const md_info_t sha256_info;
51#endif
52#if defined(POLARSSL_SHA4_C)
53extern const md_info_t sha384_info;
54extern const md_info_t sha512_info;
55#endif
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* POLARSSL_MD_WRAP_H */