/dports/math/mpdecimal/mpdecimal-2.5.1/tests/testdata_dist/ |
H A D | powmod.decTest | 57 pmod51 powmod nan 2 3 -> NaN 58 pmod52 powmod 1 nan 3 -> NaN 59 pmod53 powmod 1 2 nan -> NaN 63 pmod57 powmod 2.3 4 5 -> NaN Invalid_operation 64 pmod58 powmod 2 3.4 5 -> NaN Invalid_operation 66 pmod60 powmod 2 3 0 -> NaN Invalid_operation 67 pmod61 powmod 423 0 101 -> 1 70 pmod64 powmod 0 2 101 -> 0 71 pmod65 powmod inf nan nan -> NaN 72 pmod66 powmod nan inf nan -> NaN [all …]
|
/dports/math/givaro/givaro-4.1.1/src/kernel/gmp++/ |
H A D | gmp++_int_pow.C | 62 Integer& powmod(Integer& Res, const Integer& n, const uint64_t p, const Integer& m) in powmod() function 68 Integer powmod(const Integer& n, const uint64_t p, const Integer& m) in powmod() function 72 return powmod(Res,n,p,m); in powmod() 75 Integer& powmod(Integer& Res, const Integer& n, const int64_t e, const Integer& m) in powmod() function 79 return powmod(Res, Res, (uint64_t)std::abs(e), m); in powmod() 82 return powmod (Res, n, (uint64_t)(e), m); in powmod() 85 Integer powmod(const Integer& n, const int64_t e, const Integer& m) in powmod() function 88 return powmod(Res, n, e, m); in powmod() 92 Integer& powmod(Integer& Res, const Integer& n, const Integer& e, const Integer& m) in powmod() function 97 Integer powmod(const Integer& n, const Integer& e, const Integer& m) in powmod() function [all …]
|
H A D | gmp++_int.h | 78 Integer& powmod(Integer& Res, const Integer& n, const uint64_t e, const Integer& m); 79 Integer& powmod(Integer& Res, const Integer& n, const int64_t e, const Integer& m); 83 Integer powmod(const Integer& n, const uint64_t e, const Integer& m); 84 Integer powmod(const Integer& n, const int64_t e, const Integer& m); 85 Integer powmod(const Integer& n, const uint32_t e, const Integer& m) ; 86 Integer powmod(const Integer& n, const int32_t e, const Integer& m) ; 87 Integer powmod(const Integer& n, const Integer& e, const Integer& m); 1352 return powmod(Res, n, (uint64_t)e, m); in powmod() 1357 return powmod(Res, n, (int64_t)e, m); in powmod() 1371 return powmod(n, (uint64_t)e, m); in powmod() [all …]
|
/dports/math/gp2c/gp2c-0.0.12/test/gp/ |
H A D | read.gp | 3 powmod(a,b,c)=lift(Mod(a,c)^b) 10 Ax=powmod(A,x,P); 18 Ay=powmod(A,y,P); 19 Axy=powmod(Ax,y,P); 25 Axy=powmod(Ay,-x,P);
|
H A D | install.gp | 5 powmod(a,b,c)=lift(gpow(Mod(a,c),b)) 14 [[e,p*q],[powmod(e,-1,phi),p*q]] 19 powmod(data,publickey[1],publickey[2]) 24 powmod(data,privatekey[1],privatekey[2])
|
/dports/math/giacxcas/giac-1.6.0/examples/codage/ |
H A D | rsa | 45 l:=append(l,powmod(a,u,n)); 54 l:=append(l,powmod(a,u,n)); 64 a:=powmod(b,m,n); 87 b:=powmod(a,u,n); 90 l:=append(l,powmod(b,mtar,ntar)); 100 b:=powmod(a,u,n); 101 l:=append(l,powmod(b,mtar,ntar)); 114 a:=powmod(b,utar,ntar); 116 b:=powmod(a,m,n);
|
/dports/math/miracl/miracl-5.6/ |
H A D | pk-demo.c | 96 powmod(pb,a,p,key); in main() 100 powmod(pa,b,p,key); in main() 176 powmod(y,k,p,b); in main() 185 powmod(a,t,p,m); in main() 237 powmod(m,e,n,c); in main() 245 powmod(c,dp,p,pm[0]); /* get result mod p */ in main() 246 powmod(c,dq,q,pm[1]); /* get result mod q */ in main()
|
H A D | deciph.c | 102 powmod(alpha,n,y,alpha); in main() 115 powmod(beta,n,y,beta); in main() 120 powmod(x,alpha,p,x); /* using chinese remainder thereom */ in main() 121 powmod(y,beta,q,y); in main()
|
H A D | dssgen.c | 51 powmod(g,q,p,y); in main() 60 powmod(g,x,p,y); in main()
|
H A D | rsat.c | 115 powmod(_MIPP_ c,dp,p,m); in main() 116 powmod(_MIPP_ c,dq,q,m1); in main()
|
/dports/math/giacxcas/giac-1.6.0/examples/arit/ |
H A D | rsa.cxx | 46 l:=append(l,powmod(a,u,n)); 55 l:=append(l,powmod(a,u,n)); 66 a:=powmod(b,m,n);
|
/dports/math/p5-Math-Prime-Util/Math-Prime-Util-0.73/t/ |
H A D | 26-mod.t | 88 is_deeply(\@exp, [map { powmod($_ & 3, ($_>>2)-3, 0) } 0..27], "powmod(..,0)"); 93 is_deeply(\@exp, [map { powmod($_ & 3, ($_>>2)-3, 1) } 0..27], "powmod(..,1)"); 162 push @res, powmod($i1[$_], $i2[$_], $i3[$_]); 170 push @res, powmod($i1[$_], -$i2t[$_], $i3[$_]);
|
/dports/math/givaro/givaro-4.1.1/src/kernel/integer/ |
H A D | givintnumtheo.inl | 144 found = (! isOne( this->powmod(tmp,A,*f,p)) ); 149 found = (! isOne( this->powmod(tmp,A,*f,p)) ); 155 found = (! isOne( this->powmod(tmp,A,*f,p)) ); 161 found = (! isOne( this->powmod(tmp,A,*f,p)) ); 170 found = (! isOne( this->powmod(tmp,A,*f,p)) ); 223 this->powmod(essai, alea, Temp, p); 246 this->powmod(essai, alea, Temp, p); 255 this->mulin(primroot, this->powmod(essai, alea, Temp, p)); 381 this->powmod(tmp, prime, this->div(expo, phin, *f), n); 397 this->powmod(tmp, prime, g, n); [all …]
|
H A D | givintsqrootmod.inl | 35 return powmod (x, amp, ppu, p); // powmod (x,a,(p+1)/4,p); 42 powmod (tmp, amp, puis, p); 46 return powmod (x, amp, puis, p); 51 powmod (x, a4, puis, p); 62 powmod (x, i, puis, p); // (2a)^{(p-1}/4} is +1 or -1 68 powmod(x, i, puis, p); // (2d^2a)^{(p-9)/16} 88 powmod (z, g, q, p); // z = g^q mod p 92 powmod (x, amp, tmp, p); // a^{(q-1)/2} mod p 111 powmod (t, y, puis, p); // t = y^{ 2^{m-r-1} } mod p 140 powmod(x,p,(t>>1),pk);
|
/dports/math/p5-Math-Prime-Util-GMP/Math-Prime-Util-GMP-0.52/t/ |
H A D | 26-mod.t | 75 is_deeply([map { powmod($_ & 3, ($_>>2)-3, 0) } 0..27], \@exp, "powmod(..,0)"); 80 is_deeply([map { powmod($_ & 3, ($_>>2)-3, 1) } 0..27], \@exp, "powmod(..,1)"); 140 push @res, powmod($i1[$_], $i2[$_], $i3[$_]); 148 push @res, powmod($i1[$_], -$i2t[$_], $i3[$_]);
|
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang/otp-OTP-24.1.7/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang-java/otp-OTP-24.1.7/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/erlang-runtime21/otp-OTP-21.3.8.24/erts/emulator/test/ |
H A D | big_SUITE.erl | 28 shift_limit_1/1, powmod/1, system_limit/1, toobig/1, otp_6692/1]). 47 powmod, system_limit, toobig, otp_6692]. 325 powmod(Config) when is_list(Config) -> function 329 …84213893808887471095918905937046217646432382915847269148913963434734284563536888 = powmod(A, B, C), 332 powmod(A, 1, C) -> function 334 powmod(A, 2, C) -> function 336 powmod(A, B, C) -> function 339 P = powmod(A, B1, C),
|
/dports/lang/gcc12-devel/gcc-12-20211205/libphobos/src/std/math/ |
H A D | exponential.d | 880 assert(powmod(1U, 10U, 3U) == 1); 881 assert(powmod(3U, 2U, 6U) == 3); 883 assert(powmod(2U, 3U, 5U) == 3); 884 assert(powmod(2U, 4U, 5U) == 1); 885 assert(powmod(2U, 5U, 5U) == 2); 912 assert(powmod(a, b, c) == 0); 914 assert(powmod(a, b, c) == 1); 939 assert(powmod(x, y, z) == 0); 941 assert(powmod(x, y, z) == 1); 946 auto res = powmod(x1, y1, z1); [all …]
|
/dports/audio/ampache/ampache-php74-5.0.0/vendor/openid/php-openid/Auth/OpenID/ |
H A D | DiffieHellman.php | 79 $this->public = $this->lib->powmod($this->gen, $this->private, 85 return $this->lib->powmod($composite, $this->private, $this->mod);
|
/dports/www/tikiwiki/tiki-21.2/vendor_bundled/vendor/openid/php-openid/Auth/OpenID/ |
H A D | DiffieHellman.php | 78 $this->public = $this->lib->powmod($this->gen, $this->private, 84 return $this->lib->powmod($composite, $this->private, $this->mod);
|