Debian Codegraph @

src/ed25519.h

raw symbols SCIP
1 #ifndef _ED25519_H
2 #define _ED25519_H
3
4 typedef struct Point {
5 uint32_t X[10];
6 uint32_t Y[10];
7 uint32_t Z[10];
8 uint32_t T[10];
9 } Point;
10
11 EXPORT_SYM int ed25519_new_point(Point **out,
12 const uint8_t x[32], const uint8_t y[32],
13 size_t modsize, void *context);
14 EXPORT_SYM int ed25519_clone(Point **P, const Point *Q);
15 EXPORT_SYM void ed25519_free_point(Point *p);
16 EXPORT_SYM int ed25519_cmp(const Point *p1, const Point *p2);
17 EXPORT_SYM int ed25519_neg(Point *p);
18 EXPORT_SYM int ed25519_get_xy(uint8_t *xb, uint8_t *yb, size_t modsize, Point *p);
19 EXPORT_SYM int ed25519_double(Point *p);
20 EXPORT_SYM int ed25519_add(Point *P1, const Point *P2);
21 EXPORT_SYM int ed25519_scalar(Point *P, const uint8_t *scalar, size_t scalar_len, uint64_t seed);
22
23 #endif