ECDH: Fix whitespace and permission problems

This commit is contained in:
Christoph M. Wintersteiger 2019-01-07 14:12:25 +00:00 committed by Janos Follath
parent 0082f9df6f
commit ea24394c03
8 changed files with 30 additions and 29 deletions

0
3rdparty/CMakeLists.txt vendored Executable file → Normal file
View file

1
3rdparty/everest/CMakeLists.txt vendored Executable file → Normal file
View file

@ -7,3 +7,4 @@ set(src_everest
${CMAKE_CURRENT_SOURCE_DIR}/library/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c
PARENT_SCOPE
)

View file

@ -24,7 +24,9 @@
#endif
#endif
/* TODO: review these two definitions and understand why they're needed. */
/* Since KreMLin emits the inline keyword unconditionally, we follow the
* guidelines at https://gcc.gnu.org/onlinedocs/gcc/Inline.html and make this
* __inline__ to ensure the code compiles with -std=c90 and earlier. */
#ifdef __GNUC__
# define inline __inline__
#endif

0
3rdparty/everest/include/everest/x25519.h vendored Executable file → Normal file
View file

0
include/mbedtls/ecdsa.h Executable file → Normal file
View file

2
library/ecdh.c Executable file → Normal file
View file

@ -221,12 +221,10 @@ int mbedtls_ecdh_setup( mbedtls_ecdh_context *ctx, mbedtls_ecp_group_id grp_id )
{
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
case MBEDTLS_ECP_DP_CURVE25519:
{
ctx->point_format = MBEDTLS_ECP_PF_COMPRESSED;
ctx->var = MBEDTLS_ECDH_VARIANT_EVEREST;
ctx->grp_id = grp_id;
return( mbedtls_everest_setup( &ctx->ctx.everest_ecdh, grp_id ) );
}
#endif
default:
ctx->point_format = MBEDTLS_ECP_PF_UNCOMPRESSED;

0
library/ecdsa.c Executable file → Normal file
View file

0
programs/test/benchmark.c Executable file → Normal file
View file