Minor ecdsa cleanups

- point_format is of no use
- d was init'ed and free'd twice
This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-15 13:45:38 +02:00 committed by Paul Bakker
parent 686bfae244
commit 56a487a17f
2 changed files with 0 additions and 5 deletions

View file

@ -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;

View file

@ -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)