mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 09:41:10 +00:00
Add ecdsa_context structure
This commit is contained in:
parent
44618dd798
commit
bec2f45cfc
|
@ -29,6 +29,20 @@
|
||||||
|
|
||||||
#include "polarssl/ecp.h"
|
#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
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue