blob: dd5fd6cf9305c7df19252a61a2f0e4d3887aca37 [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 *
Manuel Pégourié-Gonnarda658a402015-01-23 09:45:19 +00008 * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved
Paul Bakker17373852011-01-06 14:20:01 +00009 *
Manuel Pégourié-Gonnardfe446432015-03-06 13:17:10 +000010 * This file is part of mbed TLS (https://tls.mbed.org)
Paul Bakker17373852011-01-06 14:20:01 +000011 *
Paul Bakker17373852011-01-06 14:20:01 +000012 * 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
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020029#if !defined(POLARSSL_CONFIG_FILE)
Paul Bakker314052f2011-08-15 09:07:52 +000030#include "config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020031#else
32#include POLARSSL_CONFIG_FILE
33#endif
Manuel Pégourié-Gonnard6c5abfa2015-02-13 14:12:07 +000034
Paul Bakker314052f2011-08-15 09:07:52 +000035#include "md.h"
Paul Bakker17373852011-01-06 14:20:01 +000036
Paul Bakker17373852011-01-06 14:20:01 +000037#ifdef __cplusplus
38extern "C" {
39#endif
40
41#if defined(POLARSSL_MD2_C)
42extern const md_info_t md2_info;
43#endif
44#if defined(POLARSSL_MD4_C)
45extern const md_info_t md4_info;
46#endif
47#if defined(POLARSSL_MD5_C)
48extern const md_info_t md5_info;
49#endif
Paul Bakker61b699e2014-01-22 13:35:29 +010050#if defined(POLARSSL_RIPEMD160_C)
51extern const md_info_t ripemd160_info;
Manuel Pégourié-Gonnarde4d47a62014-01-17 20:41:32 +010052#endif
Paul Bakker17373852011-01-06 14:20:01 +000053#if defined(POLARSSL_SHA1_C)
54extern const md_info_t sha1_info;
55#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020056#if defined(POLARSSL_SHA256_C)
Paul Bakker17373852011-01-06 14:20:01 +000057extern const md_info_t sha224_info;
58extern const md_info_t sha256_info;
59#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020060#if defined(POLARSSL_SHA512_C)
Paul Bakker17373852011-01-06 14:20:01 +000061extern const md_info_t sha384_info;
62extern const md_info_t sha512_info;
63#endif
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* POLARSSL_MD_WRAP_H */