blob: 0251a98c01c6d3f95ad7260ee2ee7b7534587ded [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é-Gonnard085ab042015-01-23 11:06:27 +000010 * This file is part of mbed TLS (https://www.polarssl.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
Paul Bakker314052f2011-08-15 09:07:52 +000034#include "md.h"
Paul Bakker17373852011-01-06 14:20:01 +000035
Paul Bakker17373852011-01-06 14:20:01 +000036#ifdef __cplusplus
37extern "C" {
38#endif
39
40#if defined(POLARSSL_MD2_C)
41extern const md_info_t md2_info;
42#endif
43#if defined(POLARSSL_MD4_C)
44extern const md_info_t md4_info;
45#endif
46#if defined(POLARSSL_MD5_C)
47extern const md_info_t md5_info;
48#endif
Paul Bakker61b699e2014-01-22 13:35:29 +010049#if defined(POLARSSL_RIPEMD160_C)
50extern const md_info_t ripemd160_info;
Manuel Pégourié-Gonnarde4d47a62014-01-17 20:41:32 +010051#endif
Paul Bakker17373852011-01-06 14:20:01 +000052#if defined(POLARSSL_SHA1_C)
53extern const md_info_t sha1_info;
54#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020055#if defined(POLARSSL_SHA256_C)
Paul Bakker17373852011-01-06 14:20:01 +000056extern const md_info_t sha224_info;
57extern const md_info_t sha256_info;
58#endif
Paul Bakker9e36f042013-06-30 14:34:05 +020059#if defined(POLARSSL_SHA512_C)
Paul Bakker17373852011-01-06 14:20:01 +000060extern const md_info_t sha384_info;
61extern const md_info_t sha512_info;
62#endif
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* POLARSSL_MD_WRAP_H */