Codebase list ell / 9ef5a88
ecc: add l_ecc_point_y_isodd This is required to know how a compressed point will be interpreted after sending the raw (compressed) X coordiate. James Prestwood authored 2 years ago Denis Kenzior committed 2 years ago
3 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
733733 return p->curve->ndigits * 8;
734734 }
735735
736 LIB_EXPORT bool l_ecc_point_y_isodd(const struct l_ecc_point *p)
737 {
738 return p->y[0] & 1;
739 }
740
736741 LIB_EXPORT ssize_t l_ecc_point_get_data(const struct l_ecc_point *p, void *buf,
737742 size_t len)
738743 {
6868 const struct l_ecc_curve *l_ecc_point_get_curve(const struct l_ecc_point *p);
6969 ssize_t l_ecc_point_get_x(const struct l_ecc_point *p, void *x, size_t xlen);
7070 ssize_t l_ecc_point_get_y(const struct l_ecc_point *p, void *y, size_t ylen);
71 bool l_ecc_point_y_isodd(const struct l_ecc_point *p);
7172
7273 ssize_t l_ecc_point_get_data(const struct l_ecc_point *p, void *buf, size_t len);
7374 void l_ecc_point_free(struct l_ecc_point *p);
571571 l_ecc_point_from_data;
572572 l_ecc_point_get_x;
573573 l_ecc_point_get_y;
574 l_ecc_point_y_isodd;
574575 l_ecc_point_get_data;
575576 l_ecc_point_inverse;
576577 l_ecc_point_multiply;