mirror of https://github.com/ARMmbed/mbed-os.git
Remove unneeded function declarations + include file
Move include platform from sha1_alt.h to sha1_alt.cpull/4157/head
parent
996e093b77
commit
f26ae03e48
|
@ -18,8 +18,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "mbedtls/sha1.h"
|
#include "mbedtls/sha1.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA1_ALT)
|
#if defined(MBEDTLS_SHA1_ALT)
|
||||||
|
#include "mbedtls/platform.h"
|
||||||
|
|
||||||
/* Implementation that should never be optimized out by the compiler */
|
/* Implementation that should never be optimized out by the compiler */
|
||||||
static void mbedtls_zeroize( void *v, size_t n ) {
|
static void mbedtls_zeroize( void *v, size_t n ) {
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
#if defined MBEDTLS_SHA1_ALT
|
#if defined MBEDTLS_SHA1_ALT
|
||||||
|
|
||||||
#include "mbedtls/platform.h"
|
|
||||||
#include "mbedtls/config.h"
|
|
||||||
|
|
||||||
#include "cmsis.h"
|
#include "cmsis.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -107,22 +105,6 @@ void mbedtls_sha1_process( mbedtls_sha1_context *ctx, const unsigned char data[6
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Output = SHA-1( input buffer )
|
|
||||||
*
|
|
||||||
* \param input buffer holding the data
|
|
||||||
* \param ilen length of the input data
|
|
||||||
* \param output SHA-1 checksum result
|
|
||||||
*/
|
|
||||||
void mbedtls_sha1( const unsigned char *input, size_t ilen, unsigned char output[20] );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Checkup routine
|
|
||||||
*
|
|
||||||
* \return 0 if successful, or 1 if the test failed
|
|
||||||
*/
|
|
||||||
int mbedtls_sha1_self_test( int verbose );
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue