MPHELL
5.0.0
|
Tutorial for ecdsa signature and verification (with precomputation) using mphell. More...
#include <stdio.h>
#include "mphell/mphell.h"
Go to the source code of this file.
Data Structures | |
struct | ecdsa_sig |
Define an ECDSA signature. More... | |
struct | ecdsa_precomp |
Precomputation structure. More... | |
Macros | |
#define | PRECOMP_WIN_SIZE 9 |
#define | PRECOMP_SIZE 256 |
Typedefs | |
typedef struct ecdsa_sig | ecdsa_sig_t |
typedef ecdsa_sig_t | ecdsa_sig[1] |
typedef struct ecdsa_precomp | ecdsa_precomp_t |
typedef ecdsa_precomp_t | ecdsa_precomp[1] |
Functions | |
void | ecdsa_sign_alloc (ecdsa_sig *sig, uint8_t size, ec_curve_ptr E) |
void | ecdsa_sign_free (ecdsa_sig *sig, ec_curve_ptr E) |
void | ecdsa_precal (ecdsa_precomp *precomp, ec_point *key, ec_curve_ptr E) |
void | ecdsa_precal_free (ecdsa_precomp *precomp, ec_curve_ptr E) |
void | ecdsa_sign (unsigned char *hash, ecdsa_sig *sig, number_ptr priv_key, ec_curve *curve) |
int8_t | ecdsa_pub_key_validation (ec_point *pub_key, ec_curve *curve) |
int8_t | ecdsa_verify (unsigned char *hash, ecdsa_sig *sig, ec_point *pub_key, ec_curve *curve, ecdsa_precomp precomp) |
int | main () |
Tutorial for ecdsa signature and verification (with precomputation) using mphell.
Definition in file mphell_tuto_ecdsa_not_FIPS_compliant.c.