Remove MBEDTLS_SHA1_ALT

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2024-06-05 09:59:44 +01:00
parent f974bff38c
commit 2cd12de614
4 changed files with 0 additions and 29 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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.
* *

View File

@ -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 )
*/ */