Apply review feedback on ECP interface

Naming conventions are revised, style issues corrected and minor
optimisation added.
This commit is contained in:
Janos Follath 2016-11-18 16:38:23 +00:00 committed by Simon Butcher
parent b8a90fb51c
commit c44ab97cc9
7 changed files with 105 additions and 98 deletions
include/mbedtls

View file

@ -38,11 +38,13 @@
#define MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH -0x4C00 /**< Signature is valid but shorter than the user-supplied length. */
#if !defined(MBEDTLS_ECP_ALT)
// default mbed TLS elliptic curve arithmetic implementation
//
// (in case MBEDTLS_ECP_ALT is defined then the developer has to provide an
// alternative implementation for the whole module and it will replace this
// one.)
/*
* default mbed TLS elliptic curve arithmetic implementation
*
* (in case MBEDTLS_ECP_ALT is defined then the developer has to provide an
* alternative implementation for the whole module and it will replace this
* one.)
*/
#ifdef __cplusplus
extern "C" {