CRS
Isogeny-based post-quantum Diffie-Hellman protocol.
Functions
roots.h File Reference
#include <gmp.h>
#include <flint/fmpz.h>
#include <flint/fq.h>
#include <flint/fq_poly.h>
#include <flint/fq_poly_factor.h>

Go to the source code of this file.

Functions

int fq_sqr_from_polyfact (fq_t, fq_t, const fq_ctx_t)
 ‍** More...
 

Function Documentation

◆ fq_sqr_from_polyfact()

int fq_sqr_from_polyfact ( fq_t  rop,
fq_t  op,
const fq_ctx_t  F 
)

‍**

Extract square root of op by factoring polynomial X^2-op. Returns 1 if successful and 0 otherwise.