Loïc Grenié on Fri, 21 Apr 2017 09:40:59 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Function to calculate the power of a number in a finite group Zn |
I'm working with criptography, uI choose a prime? isprime(374623509867548346578746598234 56747); %1 = 0? nextprime(374623509867548346578746598234 56747); %2374623509867548346578746598234 56849 ? isprime(374623509867548346578746598234 56849); %3 = 1So I find a generator and your order? znprimroot(374623509867548346578746598234 56849); %5 Mod(17, 37462350986754834657874659823456849) ? g = Mod(17, 37462350986754834657874659823456849); %6 Mod(17, 37462350986754834657874659823456849) ? znorder(g);%7 37462350986754834657874659823456848 So I have a group Zp (p=374623509867548346578746598234 56849) and a generator g= Mod(17, 37462350986754834657874659823456849) But I want to calculate g elevated to the number e= 5466093453756547, but I didn't finde the function to calculate this.