MOTION  0.01
Framework for mixed-protocol multi-party computation
Classes | Typedefs | Functions
mycurve25519.h File Reference
#include <cstdint>
Include dependency graph for mycurve25519.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fe
 
struct  fe_loose
 
struct  ge_p2
 
struct  ge_p3
 
struct  ge_p1p1
 
struct  ge_precomp
 
struct  ge_cached
 
struct  sc
 

Typedefs

typedef struct fe fe
 
typedef struct fe_loose fe_loose
 

Functions

void x25519_ge_tobytes (uint8_t s[32], const ge_p2 *h)
 
int x25519_ge_frombytes_vartime (ge_p3 *h, const uint8_t *s)
 
void x25519_ge_p3_to_cached (ge_cached *r, const ge_p3 *p)
 
void x25519_ge_p1p1_to_p2 (ge_p2 *r, const ge_p1p1 *p)
 
void x25519_ge_p1p1_to_p3 (ge_p3 *r, const ge_p1p1 *p)
 
void x25519_ge_add (ge_p1p1 *r, const ge_p3 *p, const ge_cached *q)
 
void x25519_ge_sub (ge_p1p1 *r, const ge_p3 *p, const ge_cached *q)
 
void x25519_ge_scalarmult_small_precomp (ge_p3 *h, const uint8_t a[32], const uint8_t precomp_table[15 *2 *32])
 
void x25519_ge_scalarmult_base (ge_p3 *h, const uint8_t a[32])
 
void x25519_ge_scalarmult (ge_p2 *r, const uint8_t *scalar, const ge_p3 *A)
 
void x25519_sc_reduce (uint8_t s[64])
 
void sc_random (uint8_t s[32])
 
void x25519_ge_p2_to_p3 (ge_p3 *r, const ge_p2 *p)
 
void ge_p3_tobytes (uint8_t s[32], const ge_p3 *h)
 
void ge_double_scalarmult_vartime (ge_p2 *r, const uint8_t *a, const ge_p3 *A, const uint8_t *b)
 
void ge_p2_0 (ge_p2 *h)
 
void ge_p3_0 (ge_p3 *h)
 
void ge_cached_0 (ge_cached *h)
 
void ge_precomp_0 (ge_precomp *h)
 

Typedef Documentation

◆ fe

typedef struct fe fe

◆ fe_loose

typedef struct fe_loose fe_loose

Function Documentation

◆ ge_cached_0()

void ge_cached_0 ( ge_cached h)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ge_double_scalarmult_vartime()

void ge_double_scalarmult_vartime ( ge_p2 r,
const uint8_t *  a,
const ge_p3 A,
const uint8_t *  b 
)
Here is the call graph for this function:

◆ ge_p2_0()

void ge_p2_0 ( ge_p2 h)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ge_p3_0()

void ge_p3_0 ( ge_p3 h)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ge_p3_tobytes()

void ge_p3_tobytes ( uint8_t  s[32],
const ge_p3 h 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ge_precomp_0()

void ge_precomp_0 ( ge_precomp h)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sc_random()

void sc_random ( uint8_t  s[32])
Here is the call graph for this function:

◆ x25519_ge_add()

void x25519_ge_add ( ge_p1p1 r,
const ge_p3 p,
const ge_cached q 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x25519_ge_frombytes_vartime()

int x25519_ge_frombytes_vartime ( ge_p3 h,
const uint8_t *  s 
)
Here is the call graph for this function:

◆ x25519_ge_p1p1_to_p2()

void x25519_ge_p1p1_to_p2 ( ge_p2 r,
const ge_p1p1 p 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x25519_ge_p1p1_to_p3()

void x25519_ge_p1p1_to_p3 ( ge_p3 r,
const ge_p1p1 p 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x25519_ge_p2_to_p3()

void x25519_ge_p2_to_p3 ( ge_p3 r,
const ge_p2 p 
)
Here is the call graph for this function:

◆ x25519_ge_p3_to_cached()

void x25519_ge_p3_to_cached ( ge_cached r,
const ge_p3 p 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x25519_ge_scalarmult()

void x25519_ge_scalarmult ( ge_p2 r,
const uint8_t *  scalar,
const ge_p3 A 
)
Here is the call graph for this function:

◆ x25519_ge_scalarmult_base()

void x25519_ge_scalarmult_base ( ge_p3 h,
const uint8_t  a[32] 
)

◆ x25519_ge_scalarmult_small_precomp()

void x25519_ge_scalarmult_small_precomp ( ge_p3 h,
const uint8_t  a[32],
const uint8_t  precomp_table[15 *2 *32] 
)
Here is the call graph for this function:

◆ x25519_ge_sub()

void x25519_ge_sub ( ge_p1p1 r,
const ge_p3 p,
const ge_cached q 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x25519_ge_tobytes()

void x25519_ge_tobytes ( uint8_t  s[32],
const ge_p2 h 
)
Here is the call graph for this function:

◆ x25519_sc_reduce()

void x25519_sc_reduce ( uint8_t  s[64])
Here is the call graph for this function:
Here is the caller graph for this function: