mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-05 06:26:52 +00:00
Make MBEDTLS_MD_LIGHT private for now.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
cacc0ea144
commit
0d4152186d
4 changed files with 17 additions and 40 deletions
|
|
@ -2644,7 +2644,6 @@
|
|||
* \def MBEDTLS_MD_C
|
||||
*
|
||||
* Enable the generic layer for message digest (hashing) and HMAC.
|
||||
* This will automatically enable #MBEDTLS_MD_LIGHT
|
||||
*
|
||||
* Requires: one of: MBEDTLS_MD5_C, MBEDTLS_RIPEMD160_C, MBEDTLS_SHA1_C,
|
||||
* MBEDTLS_SHA224_C, MBEDTLS_SHA256_C, MBEDTLS_SHA384_C,
|
||||
|
|
@ -2673,25 +2672,6 @@
|
|||
*/
|
||||
#define MBEDTLS_MD_C
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_MD_LIGHT
|
||||
*
|
||||
* Enable the "light" subset of #MBEDTLS_MD_C: just hashing and basic
|
||||
* meta-data (see md.h for details).
|
||||
*
|
||||
* This is automatically enabled whenever #MBEDTLS_MD_C is enabled, but it is
|
||||
* possible to enable this without #MBEDTLS_MD_C if support for HMAC or extra
|
||||
* metadata functions is not needed.
|
||||
*
|
||||
* Requires: one of: MBEDTLS_MD5_C, MBEDTLS_RIPEMD160_C, MBEDTLS_SHA1_C,
|
||||
* MBEDTLS_SHA224_C, MBEDTLS_SHA256_C, MBEDTLS_SHA384_C,
|
||||
* MBEDTLS_SHA512_C.
|
||||
* Module: library/md.c
|
||||
*
|
||||
* Uncomment to enabled the "light" subsect of MD.
|
||||
*/
|
||||
#define MBEDTLS_MD_LIGHT
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_MD5_C
|
||||
*
|
||||
|
|
|
|||
|
|
@ -4,16 +4,6 @@
|
|||
* \brief This file contains the generic functions for message-digest
|
||||
* (hashing) and HMAC.
|
||||
*
|
||||
* Availability of functions in this module is controlled by two
|
||||
* feature macros:
|
||||
* - #MBEDTLS_MD_C enables the whole module;
|
||||
* - #MBEDTLS_MD_LIGHT enables only functions for hashing and accessing
|
||||
* most hash metadata (everything except string names); is it
|
||||
* automatically set whenever #MBEDTLS_MD_C is defined.
|
||||
*
|
||||
* The functions that are only available when #MBEDTLS_MD_C is defined
|
||||
* are grouped at the end of the file and guarded by this macro.
|
||||
*
|
||||
* \author Adriaan de Jong <dejong@fox-it.com>
|
||||
*/
|
||||
/*
|
||||
|
|
@ -300,12 +290,6 @@ MBEDTLS_CHECK_RETURN_TYPICAL
|
|||
int mbedtls_md(const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
|
||||
unsigned char *output);
|
||||
|
||||
/************************************************************************
|
||||
* Functions below this separator are not part of MBEDTLS_MD_LIGHT *
|
||||
* and require MBEDTLS_MD_C *
|
||||
************************************************************************/
|
||||
|
||||
#if defined(MBEDTLS_MD_C)
|
||||
/**
|
||||
* \brief This function returns the list of digests supported by the
|
||||
* generic digest module.
|
||||
|
|
@ -487,7 +471,6 @@ MBEDTLS_CHECK_RETURN_TYPICAL
|
|||
int mbedtls_md_hmac(const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
|
||||
const unsigned char *input, size_t ilen,
|
||||
unsigned char *output);
|
||||
#endif /* MBEDTLS_MD_C */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue