From bec2f45cfc080ebf60287d96737d6d3d8705fc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 27 Jun 2013 10:17:07 +0200 Subject: [PATCH] Add ecdsa_context structure --- include/polarssl/ecdsa.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/polarssl/ecdsa.h b/include/polarssl/ecdsa.h index 2ad986d64..f6b1e784c 100644 --- a/include/polarssl/ecdsa.h +++ b/include/polarssl/ecdsa.h @@ -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