CRS
Isogeny-based post-quantum Diffie-Hellman protocol.
Functions
auxiliary.c File Reference
#include "auxiliary.h"

Functions

void fq_set_str (fq_t rop, char *s, const fq_ctx_t F)
 
void fq_add_ui (fq_t rop, fq_t op, ulong x, const fq_ctx_t F)
 
void fq_add_si (fq_t rop, fq_t op, slong x, const fq_ctx_t F)
 
void fq_sub_ui (fq_t rop, fq_t op, ulong x, const fq_ctx_t F)
 
void fq_sub_si (fq_t rop, fq_t op, slong x, const fq_ctx_t F)
 
void fq_div_si (fq_t rop, fq_t op, slong x, const fq_ctx_t F)
 
void fq_div_ui (fq_t rop, fq_t op, ulong x, const fq_ctx_t F)
 
void fq_inv_ui (fq_t rop, ulong op, const fq_ctx_t F)
 
void fmpz_pow (fmpz_t rop, fmpz_t op, fmpz_t n)
 
void fmpz_val (fmpz_t rop, fmpz_t op1, fmpz_t op2)
 
void fmpz_val_q (fmpz_t rop1, fmpz_t rop2, fmpz_t op1, fmpz_t op2)
 

Function Documentation

◆ fq_add_si()

void fq_add_si ( fq_t  rop,
fq_t  op,
slong  x,
const fq_ctx_t  F 
)

Sets rop to the sum of op and x, where x is a slong considered as an element of F.

◆ fq_add_ui()

void fq_add_ui ( fq_t  rop,
fq_t  op,
ulong  x,
const fq_ctx_t  F 
)

Sets rop to the sum of op and x, where x is an ulong considered as an element of F.

◆ fq_div_si()

void fq_div_si ( fq_t  rop,
fq_t  op,
slong  x,
const fq_ctx_t  F 
)

Sets rop to the quotient of op and x, reducing the output in the given context.

◆ fq_div_ui()

void fq_div_ui ( fq_t  rop,
fq_t  op,
ulong  x,
const fq_ctx_t  F 
)

Sets rop to the quotient of op and x, reducing the output in the given context.

◆ fq_inv_ui()

void fq_inv_ui ( fq_t  rop,
ulong  op,
const fq_ctx_t  F 
)

Sets rop to the inverse of op, reducing the output in the given context.

◆ fq_set_str()

void fq_set_str ( fq_t  rop,
char *  s,
const fq_ctx_t  F 
)

Sets rop to the sum of op and x, where x is a string considered as an element of F.

◆ fq_sub_si()

void fq_sub_si ( fq_t  rop,
fq_t  op,
slong  x,
const fq_ctx_t  F 
)

Sets rop to the sum of op and x, where x is a slong considered as an element of F.

◆ fq_sub_ui()

void fq_sub_ui ( fq_t  rop,
fq_t  op,
ulong  x,
const fq_ctx_t  F 
)

Sets rop to the difference of op and x, where x is an ulong considered as an element of F.