mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
Remove MBEDTLS_RIPEMD160_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
2cd12de614
commit
30c7701a1d
@ -352,7 +352,6 @@
|
|||||||
|
|
||||||
//#define MBEDTLS_CMAC_ALT
|
//#define MBEDTLS_CMAC_ALT
|
||||||
//#define MBEDTLS_MD5_ALT
|
//#define MBEDTLS_MD5_ALT
|
||||||
//#define MBEDTLS_RIPEMD160_ALT
|
|
||||||
//#define MBEDTLS_SHA256_ALT
|
//#define MBEDTLS_SHA256_ALT
|
||||||
//#define MBEDTLS_SHA512_ALT
|
//#define MBEDTLS_SHA512_ALT
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
/* ripemd160_alt.h with dummy types for MBEDTLS_RIPEMD160_ALT */
|
|
||||||
/*
|
|
||||||
* Copyright The Mbed TLS Contributors
|
|
||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef RIPEMD160_ALT_H
|
|
||||||
#define RIPEMD160_ALT_H
|
|
||||||
|
|
||||||
typedef struct mbedtls_ripemd160_context {
|
|
||||||
int dummy;
|
|
||||||
}
|
|
||||||
mbedtls_ripemd160_context;
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* ripemd160_alt.h */
|
|
@ -20,10 +20,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_RIPEMD160_ALT)
|
|
||||||
// Regular implementation
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief RIPEMD-160 context structure
|
* \brief RIPEMD-160 context structure
|
||||||
*/
|
*/
|
||||||
@ -34,10 +30,6 @@ typedef struct mbedtls_ripemd160_context {
|
|||||||
}
|
}
|
||||||
mbedtls_ripemd160_context;
|
mbedtls_ripemd160_context;
|
||||||
|
|
||||||
#else /* MBEDTLS_RIPEMD160_ALT */
|
|
||||||
#include "ripemd160_alt.h"
|
|
||||||
#endif /* MBEDTLS_RIPEMD160_ALT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Initialize RIPEMD-160 context
|
* \brief Initialize RIPEMD-160 context
|
||||||
*
|
*
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
|
||||||
#if !defined(MBEDTLS_RIPEMD160_ALT)
|
|
||||||
|
|
||||||
void mbedtls_ripemd160_init(mbedtls_ripemd160_context *ctx)
|
void mbedtls_ripemd160_init(mbedtls_ripemd160_context *ctx)
|
||||||
{
|
{
|
||||||
memset(ctx, 0, sizeof(mbedtls_ripemd160_context));
|
memset(ctx, 0, sizeof(mbedtls_ripemd160_context));
|
||||||
@ -365,8 +363,6 @@ exit:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ! MBEDTLS_RIPEMD160_ALT */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* output = RIPEMD-160( input buffer )
|
* output = RIPEMD-160( input buffer )
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user