Remove individual mdX_file() and shaX_file()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-05-28 14:56:20 +02:00
parent 06d5d61302
commit 41b9c2b418
21 changed files with 4 additions and 703 deletions

View file

@ -65,14 +65,7 @@
* NET 9 0x0042-0x0052 0x0043-0x0043
* ENTROPY 1 0x0058-0x0058
* ASN1 7 0x0060-0x006C
* MD2 1 0x0070-0x0070
* MD4 1 0x0072-0x0072
* MD5 1 0x0074-0x0074
* SHA1 1 0x0076-0x0076
* SHA256 1 0x0078-0x0078
* SHA512 1 0x007A-0x007A
* PBKDF2 1 0x007C-0x007C
* RIPEMD160 1 0x007E-0x007E
* HMAC_DRBG 4 0x0003-0x0009
* CCM 2 0x000D-0x000F
*

View file

@ -32,8 +32,6 @@
#include <stddef.h>
#define MBEDTLS_ERR_MD2_FILE_IO_ERROR -0x0070 /**< Read/write error in file. */
#if !defined(MBEDTLS_MD2_ALT)
// Regular implementation
//
@ -113,16 +111,6 @@ extern "C" {
*/
void mbedtls_md2( const unsigned char *input, size_t ilen, unsigned char output[16] );
/**
* \brief Output = MD2( file contents )
*
* \param path input file name
* \param output MD2 checksum result
*
* \return 0 if successful, or MBEDTLS_ERR_MD2_FILE_IO_ERROR
*/
int mbedtls_md2_file( const char *path, unsigned char output[16] );
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_MD4_FILE_IO_ERROR -0x0072 /**< Read/write error in file. */
#if !defined(MBEDTLS_MD4_ALT)
// Regular implementation
//
@ -113,16 +111,6 @@ extern "C" {
*/
void mbedtls_md4( const unsigned char *input, size_t ilen, unsigned char output[16] );
/**
* \brief Output = MD4( file contents )
*
* \param path input file name
* \param output MD4 checksum result
*
* \return 0 if successful, or MBEDTLS_ERR_MD4_FILE_IO_ERROR
*/
int mbedtls_md4_file( const char *path, unsigned char output[16] );
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_MD5_FILE_IO_ERROR -0x0074 /**< Read/write error in file. */
#if !defined(MBEDTLS_MD5_ALT)
// Regular implementation
//
@ -116,16 +114,6 @@ extern "C" {
*/
void mbedtls_md5( const unsigned char *input, size_t ilen, unsigned char output[16] );
/**
* \brief Output = MD5( file contents )
*
* \param path input file name
* \param output MD5 checksum result
*
* \return 0 if successful, or MBEDTLS_ERR_MD5_FILE_IO_ERROR
*/
int mbedtls_md5_file( const char *path, unsigned char output[16] );
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_RIPEMD160_FILE_IO_ERROR -0x007E /**< Read/write error in file. */
#if !defined(MBEDTLS_RIPEMD160_ALT)
// Regular implementation
//
@ -118,18 +116,6 @@ extern "C" {
void mbedtls_ripemd160( const unsigned char *input, size_t ilen,
unsigned char output[20] );
#if defined(MBEDTLS_FS_IO)
/**
* \brief Output = RIPEMD-160( file contents )
*
* \param path input file name
* \param output RIPEMD-160 checksum result
*
* \return 0 if successful, or MBEDTLS_ERR_RIPEMD160_FILE_IO_ERROR
*/
int mbedtls_ripemd160_file( const char *path, unsigned char output[20] );
#endif /* MBEDTLS_FS_IO */
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_SHA1_FILE_IO_ERROR -0x0076 /**< Read/write error in file. */
#if !defined(MBEDTLS_SHA1_ALT)
// Regular implementation
//
@ -116,16 +114,6 @@ extern "C" {
*/
void mbedtls_sha1( const unsigned char *input, size_t ilen, unsigned char output[20] );
/**
* \brief Output = SHA-1( file contents )
*
* \param path input file name
* \param output SHA-1 checksum result
*
* \return 0 if successful, or MBEDTLS_ERR_SHA1_FILE_IO_ERROR
*/
int mbedtls_sha1_file( const char *path, unsigned char output[20] );
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_SHA256_FILE_IO_ERROR -0x0078 /**< Read/write error in file. */
#if !defined(MBEDTLS_SHA256_ALT)
// Regular implementation
//
@ -121,17 +119,6 @@ extern "C" {
void mbedtls_sha256( const unsigned char *input, size_t ilen,
unsigned char output[32], int is224 );
/**
* \brief Output = SHA-256( file contents )
*
* \param path input file name
* \param output SHA-224/256 checksum result
* \param is224 0 = use SHA256, 1 = use SHA224
*
* \return 0 if successful, or MBEDTLS_ERR_SHA256_FILE_IO_ERROR
*/
int mbedtls_sha256_file( const char *path, unsigned char output[32], int is224 );
/**
* \brief Checkup routine
*

View file

@ -33,8 +33,6 @@
#include <stddef.h>
#include <stdint.h>
#define MBEDTLS_ERR_SHA512_FILE_IO_ERROR -0x007A /**< Read/write error in file. */
#if !defined(MBEDTLS_SHA512_ALT)
// Regular implementation
//
@ -118,17 +116,6 @@ extern "C" {
void mbedtls_sha512( const unsigned char *input, size_t ilen,
unsigned char output[64], int is384 );
/**
* \brief Output = SHA-512( file contents )
*
* \param path input file name
* \param output SHA-384/512 checksum result
* \param is384 0 = use SHA512, 1 = use SHA384
*
* \return 0 if successful, or MBEDTLS_ERR_SHA512_FILE_IO_ERROR
*/
int mbedtls_sha512_file( const char *path, unsigned char output[64], int is384 );
/**
* \brief Checkup routine
*