Minor ecdsa cleanups
- point_format is of no use - d was init'ed and free'd twice
This commit is contained in:
parent
686bfae244
commit
56a487a17f
2 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue