Add ecdsa_context structure

This commit is contained in:
Manuel Pégourié-Gonnard 2013-06-27 10:17:07 +02:00
parent 44618dd798
commit bec2f45cfc

View File

@ -29,6 +29,20 @@
#include "polarssl/ecp.h"
/**
* \brief ECDSA context structure
*/
typedef struct
{
ecp_group grp; /*!< ellipitic 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 */
int point_format; /*!< format for point export */
}
ecdsa_context;
#ifdef __cplusplus
extern "C" {
#endif