Move the definition of derived values out of the settings section
Alternative implementations must no longer define these macros. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
6a2fb61896
commit
9ef1ea7444
1 changed files with 3 additions and 3 deletions
|
@ -249,9 +249,6 @@ mbedtls_ecp_group;
|
||||||
#define MBEDTLS_ECP_MAX_BITS 521 /**< The maximum size of groups, in bits. */
|
#define MBEDTLS_ECP_MAX_BITS 521 /**< The maximum size of groups, in bits. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_ECP_MAX_BYTES ( ( MBEDTLS_ECP_MAX_BITS + 7 ) / 8 )
|
|
||||||
#define MBEDTLS_ECP_MAX_PT_LEN ( 2 * MBEDTLS_ECP_MAX_BYTES + 1 )
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_ECP_WINDOW_SIZE)
|
#if !defined(MBEDTLS_ECP_WINDOW_SIZE)
|
||||||
/*
|
/*
|
||||||
* Maximum "window" size used for point multiplication.
|
* Maximum "window" size used for point multiplication.
|
||||||
|
@ -297,6 +294,9 @@ mbedtls_ecp_group;
|
||||||
#include "ecp_alt.h"
|
#include "ecp_alt.h"
|
||||||
#endif /* MBEDTLS_ECP_ALT */
|
#endif /* MBEDTLS_ECP_ALT */
|
||||||
|
|
||||||
|
#define MBEDTLS_ECP_MAX_BYTES ( ( MBEDTLS_ECP_MAX_BITS + 7 ) / 8 )
|
||||||
|
#define MBEDTLS_ECP_MAX_PT_LEN ( 2 * MBEDTLS_ECP_MAX_BYTES + 1 )
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue