Address Andres PR comments
Address Andres' comments in the PR
diff --git a/ChangeLog b/ChangeLog
index e9be97b..94eba42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,8 +38,9 @@
by Jean-Philippe Aumasson.
* Add support for alternative implementation for ECDSA, controlled by new
configuration flag MBEDTLS_ECDSA_ALT in config.h.
- Alternative Ecdsa is supported for implementation of `mbedtls_ecdsa_sign`
- and `mbedtls_ecdsa_verify`.
+ The following functions from the ECDSA module can be replaced
+ with an alternative implementation:
+ mbedtls_ecdsa_sign(), mbedtls_ecdsa_verify() and mbedtls_ecdsa_genkey().
= mbed TLS 2.5.0 branch released 2017-05-17
diff --git a/library/ecdsa.c b/library/ecdsa.c
index 8804ca6..804884b 100644
--- a/library/ecdsa.c
+++ b/library/ecdsa.c
@@ -37,9 +37,11 @@
#include "mbedtls/asn1write.h"
#include <string.h>
+
#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
#include "mbedtls/hmac_drbg.h"
#endif
+
/*
* Derive a suitable integer for group grp from a buffer of length len
* SEC1 4.1.3 step 5 aka SEC1 4.1.4 step 3
@@ -314,6 +316,7 @@
return( 0 );
}
+
/*
* Compute and write signature
*/