2011-01-06 15:20:01 +01:00
|
|
|
/**
|
2021-03-09 18:03:29 +01:00
|
|
|
* \file md_wrap.h
|
2014-05-01 13:03:14 +02:00
|
|
|
*
|
2011-01-06 15:20:01 +01:00
|
|
|
* \brief Message digest wrappers.
|
|
|
|
*
|
2015-03-24 12:13:30 +01:00
|
|
|
* \warning This in an internal header. Do not include directly.
|
|
|
|
*
|
2011-01-06 15:20:01 +01:00
|
|
|
* \author Adriaan de Jong <dejong@fox-it.com>
|
2018-01-05 16:33:17 +01:00
|
|
|
*/
|
|
|
|
/*
|
2020-08-07 13:07:28 +02:00
|
|
|
* Copyright The Mbed TLS Contributors
|
2023-11-02 20:47:20 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
2011-01-06 15:20:01 +01:00
|
|
|
*/
|
2015-04-08 12:49:31 +02:00
|
|
|
#ifndef MBEDTLS_MD_WRAP_H
|
|
|
|
#define MBEDTLS_MD_WRAP_H
|
2011-01-06 15:20:01 +01:00
|
|
|
|
2021-05-27 11:25:03 +02:00
|
|
|
#include "mbedtls/build_info.h"
|
2015-02-13 15:12:07 +01:00
|
|
|
|
2019-07-04 21:01:14 +02:00
|
|
|
#include "mbedtls/md.h"
|
2011-01-06 15:20:01 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-03-24 12:13:30 +01:00
|
|
|
/**
|
|
|
|
* Message digest information.
|
|
|
|
* Allows message digest functions to be called in a generic way.
|
|
|
|
*/
|
2023-01-11 14:50:10 +01:00
|
|
|
struct mbedtls_md_info_t {
|
2019-07-19 16:03:39 +02:00
|
|
|
/** Digest identifier */
|
|
|
|
mbedtls_md_type_t type;
|
|
|
|
|
2015-06-18 14:58:58 +02:00
|
|
|
/** Output length of the digest function in bytes */
|
2019-07-19 16:03:39 +02:00
|
|
|
unsigned char size;
|
2015-03-24 12:13:30 +01:00
|
|
|
|
2023-06-21 12:02:07 +02:00
|
|
|
#if defined(MBEDTLS_MD_C)
|
2015-06-18 14:58:58 +02:00
|
|
|
/** Block length of the digest function in bytes */
|
2019-07-19 16:03:39 +02:00
|
|
|
unsigned char block_size;
|
2023-06-21 12:02:07 +02:00
|
|
|
#endif
|
2015-03-24 12:13:30 +01:00
|
|
|
};
|
|
|
|
|
2011-01-06 15:20:01 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-08 12:49:31 +02:00
|
|
|
#endif /* MBEDTLS_MD_WRAP_H */
|