From 5bf262d710e9010f8bb79200b3c299d8ad55b364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 31 Mar 2015 11:46:01 +0200 Subject: [PATCH] Doc fixes --- include/mbedtls/ecdsa.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/ecdsa.h b/include/mbedtls/ecdsa.h index e516ff6f7f..a5a535a423 100644 --- a/include/mbedtls/ecdsa.h +++ b/include/mbedtls/ecdsa.h @@ -47,6 +47,7 @@ #if POLARSSL_ECP_MAX_BYTES > 124 #error "POLARSSL_ECP_MAX_BYTES bigger than expected, please fix POLARSSL_ECDSA_MAX_LEN" #endif +/** Maximum size of an ECDSA signature in bytes */ #define POLARSSL_ECDSA_MAX_LEN ( 3 + 2 * ( 3 + POLARSSL_ECP_MAX_BYTES ) ) /** @@ -146,7 +147,7 @@ int ecdsa_verify( ecp_group *grp, * \param p_rng RNG parameter * * \note The "sig" buffer must be at least as large as twice the - * size of the curve used, plus 7 (eg. 71 bytes if a 256-bit + * size of the curve used, plus 9 (eg. 73 bytes if a 256-bit * curve is used). POLARSSL_ECDSA_MAX_LEN is always safe. * * \return 0 if successful, @@ -182,8 +183,8 @@ int ecdsa_write_signature( ecdsa_context *ctx, md_type_t md_alg, * \param md_alg MD algorithm used to hash the message * * \note The "sig" buffer must be at least as large as twice the - * size of the curve used, plus 7 (eg. 71 bytes if a 256-bit - * curve is used). + * size of the curve used, plus 9 (eg. 73 bytes if a 256-bit + * curve is used). POLARSSL_ECDSA_MAX_LEN is always safe. * * \return 0 if successful, * or a POLARSSL_ERR_ECP, POLARSSL_ERR_MPI or