gnuk/src/ec_p256.h

13 lines
399 B
C
Raw Normal View History

2013-02-17 13:20:30 +00:00
/* Non-adjacent form */
2011-10-13 06:43:58 +00:00
typedef struct naf4_257 {
uint32_t words[ BN256_WORDS*4 ]; /* Little endian */
uint8_t last_nibble; /* most significant nibble */
} naf4_257;
void compute_naf4_257 (naf4_257 *NAF_K, const bn256 *K);
2013-09-20 08:17:59 +00:00
int compute_kP (ac *X, const naf4_257 *NAF_K, const ac *P);
2011-10-13 06:43:58 +00:00
2013-09-20 08:17:59 +00:00
int compute_kG (ac *X, const bn256 *K);
2011-10-12 09:07:52 +00:00
void ecdsa (bn256 *r, bn256 *s, const bn256 *z, const bn256 *d);