Bill Allombert on Mon, 09 Mar 2020 10:05:56 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: how to calculate modular t_FFELT value with any other data type value?


On Mon, Mar 09, 2020 at 09:59:54AM +0900, HyungDo Lee wrote:
> when i use elliptic curve function,
> 
> 
> P= ellmul(E,Q,3);
> a=P[1]%100000;
> 
> _%_: forbidden division t_FFELT % t_INT
> 
> any method??
> conver t_FFELT value to t_int or  what should i do?

Assuming P[1] is a t_FFELT, you can do

a=simplify(P[1].pol)%100000

Cheers,
Bill.