mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
Remove MBEDTLS_SHA1_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
f974bff38c
commit
2cd12de614
@ -353,7 +353,6 @@
|
|||||||
//#define MBEDTLS_CMAC_ALT
|
//#define MBEDTLS_CMAC_ALT
|
||||||
//#define MBEDTLS_MD5_ALT
|
//#define MBEDTLS_MD5_ALT
|
||||||
//#define MBEDTLS_RIPEMD160_ALT
|
//#define MBEDTLS_RIPEMD160_ALT
|
||||||
//#define MBEDTLS_SHA1_ALT
|
|
||||||
//#define MBEDTLS_SHA256_ALT
|
//#define MBEDTLS_SHA256_ALT
|
||||||
//#define MBEDTLS_SHA512_ALT
|
//#define MBEDTLS_SHA512_ALT
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
/* sha1_alt.h with dummy types for MBEDTLS_SHA1_ALT */
|
|
||||||
/*
|
|
||||||
* Copyright The Mbed TLS Contributors
|
|
||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef SHA1_ALT_H
|
|
||||||
#define SHA1_ALT_H
|
|
||||||
|
|
||||||
typedef struct mbedtls_sha1_context {
|
|
||||||
int dummy;
|
|
||||||
}
|
|
||||||
mbedtls_sha1_context;
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* sha1_alt.h */
|
|
@ -30,10 +30,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_SHA1_ALT)
|
|
||||||
// Regular implementation
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The SHA-1 context structure.
|
* \brief The SHA-1 context structure.
|
||||||
*
|
*
|
||||||
@ -49,10 +45,6 @@ typedef struct mbedtls_sha1_context {
|
|||||||
}
|
}
|
||||||
mbedtls_sha1_context;
|
mbedtls_sha1_context;
|
||||||
|
|
||||||
#else /* MBEDTLS_SHA1_ALT */
|
|
||||||
#include "sha1_alt.h"
|
|
||||||
#endif /* MBEDTLS_SHA1_ALT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief This function initializes a SHA-1 context.
|
* \brief This function initializes a SHA-1 context.
|
||||||
*
|
*
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
|
||||||
#if !defined(MBEDTLS_SHA1_ALT)
|
|
||||||
|
|
||||||
void mbedtls_sha1_init(mbedtls_sha1_context *ctx)
|
void mbedtls_sha1_init(mbedtls_sha1_context *ctx)
|
||||||
{
|
{
|
||||||
memset(ctx, 0, sizeof(mbedtls_sha1_context));
|
memset(ctx, 0, sizeof(mbedtls_sha1_context));
|
||||||
@ -346,8 +344,6 @@ exit:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !MBEDTLS_SHA1_ALT */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* output = SHA-1( input buffer )
|
* output = SHA-1( input buffer )
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user