From 56a487a17fc3347c18daef2336cce2d82e24d39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 15 Aug 2013 13:45:38 +0200 Subject: [PATCH] Minor ecdsa cleanups - point_format is of no use - d was init'ed and free'd twice --- include/polarssl/ecdsa.h | 1 - library/ecdsa.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/include/polarssl/ecdsa.h b/include/polarssl/ecdsa.h index e709b405c..bc1afbbed 100644 --- a/include/polarssl/ecdsa.h +++ b/include/polarssl/ecdsa.h @@ -39,7 +39,6 @@ typedef struct ecp_point Q; /*!< public signature key */ mpi r; /*!< first integer from signature */ mpi s; /*!< second integer from signature */ - int point_format; /*!< format for point export */ } ecdsa_context; diff --git a/library/ecdsa.c b/library/ecdsa.c index 10748506d..e87bc6527 100644 --- a/library/ecdsa.c +++ b/library/ecdsa.c @@ -197,8 +197,6 @@ void ecdsa_init( ecdsa_context *ctx ) ecp_point_init( &ctx->Q ); mpi_init( &ctx->r ); mpi_init( &ctx->s ); - mpi_init( &ctx->d ); - ctx->point_format = POLARSSL_ECP_PF_UNCOMPRESSED; } /* @@ -211,8 +209,6 @@ void ecdsa_free( ecdsa_context *ctx ) ecp_point_free( &ctx->Q ); mpi_free( &ctx->r ); mpi_free( &ctx->s ); - mpi_free( &ctx->d ); - ctx->point_format = POLARSSL_ECP_PF_UNCOMPRESSED; } #if defined(POLARSSL_SELF_TEST)