Simplify ecdsa_context

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-31 13:06:41 +02:00
parent 49ce6f0973
commit 8fce937a1a
3 changed files with 48 additions and 42 deletions

View file

@ -52,18 +52,8 @@
/**
* \brief ECDSA context structure
*
* \note Purposefully begins with the same members as struct ecp_keypair.
*/
typedef struct
{
ecp_group grp; /*!< elliptic curve used */
mpi d; /*!< secret signature key */
ecp_point Q; /*!< public signature key */
mpi r; /*!< first integer from signature */
mpi s; /*!< second integer from signature */
}
ecdsa_context;
typedef ecp_keypair ecdsa_context;
#ifdef __cplusplus
extern "C" {