Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RsaCtfTool/RsaCtfTool
/ functions
Functions
614 in github.com/RsaCtfTool/RsaCtfTool
⨍
Functions
614
◇
Types & classes
177
Function
_introot_gmpy
(n, r=2)
src/RsaCtfTool/lib/number_theory.py:145
Function
_introot_gmpy2
(n, r=2)
src/RsaCtfTool/lib/number_theory.py:151
Function
_invmod
(a, m)
src/RsaCtfTool/lib/number_theory.py:157
Function
_iroot
(n, p)
src/RsaCtfTool/lib/number_theory.py:140
Function
_is_congruent
(a, b, m)
src/RsaCtfTool/lib/number_theory.py:331
Function
_is_divisible
(n, p)
src/RsaCtfTool/lib/number_theory.py:327
Function
_is_square
(n)
src/RsaCtfTool/lib/number_theory.py:164
Function
_isqrt_rem
(n)
src/RsaCtfTool/lib/number_theory.py:102
Function
_lcm
(x, y)
src/RsaCtfTool/lib/number_theory.py:291
Function
_lucas
(n)
src/RsaCtfTool/lib/number_theory.py:356
Function
_mod
(a, b)
src/RsaCtfTool/lib/number_theory.py:319
Function
_mul
(a, b)
src/RsaCtfTool/lib/number_theory.py:323
Function
_next_prime
(n)
src/RsaCtfTool/lib/number_theory.py:236
Function
_powmod
(b, e, m)
src/RsaCtfTool/lib/number_theory.py:335
Function
_powmod_base_list
(base_lst, exp, mod)
src/RsaCtfTool/lib/number_theory.py:171
Function
_powmod_exp_list
(base, exp_lst, mod)
src/RsaCtfTool/lib/number_theory.py:175
Function
_primes_gmpy
(n)
src/RsaCtfTool/lib/number_theory.py:287
Function
_remove
(n, p)
src/RsaCtfTool/lib/number_theory.py:113
Method
_timeout_handler
(self, _signum, _frame)
src/RsaCtfTool/lib/utils.py:190
Function
addpm1
(n)
src/RsaCtfTool/lib/system_primes.py:1300
Method
alarm_func
()
src/RsaCtfTool/lib/utils.py:197
Method
attack
Common factor attack
src/RsaCtfTool/attacks/multi_keys/common_factors.py:14
Method
attack
binary polynomial factoring
src/RsaCtfTool/attacks/single_key/binary_polynomial_factoring.py:16
Method
attack
Run partial_q attack with a timeout
src/RsaCtfTool/attacks/single_key/partial_q.py:14
Method
attack
Do nothing, used for multi-key attacks that succeeded so we just print the private key without spending any time factoring
src/RsaCtfTool/attacks/single_key/nullattack.py:12
Method
attack
Factors available online?
src/RsaCtfTool/attacks/single_key/wolframalpha.py:47
Method
attack
Run attack with Pollard Rho-brent
src/RsaCtfTool/attacks/single_key/williams_pp1.py:13
Method
attack
Try an attack where the public key has a common factor with the ciphertext - sourcekris
src/RsaCtfTool/attacks/single_key/comfact_cn.py:31
Method
attack
Run simple lattice attack with a timeout
src/RsaCtfTool/attacks/single_key/lattice.py:15
Method
attack
Run partial_d attack with a timeout
src/RsaCtfTool/attacks/single_key/partial_d.py:15
Method
can_run
(self)
src/RsaCtfTool/attacks/single_key/wolframalpha.py:18
Function
composite_numbers
(known_primes)
tests/conftest.py:46
Function
erathostenes_sieve
Returns a list of primes < n
src/RsaCtfTool/lib/number_theory.py:243
Function
example_cipher_files
(examples_dir)
tests/conftest.py:58
Function
example_pub_files
(examples_dir)
tests/conftest.py:51
Function
examples_dir
(repo_root)
tests/conftest.py:25
Function
factor_ned_deterministic
800-56B R2 Recommendation for Pair-Wise Key Establishment Schemes Using Integer Factorization Cryptography in Appendix C.2.
src/RsaCtfTool/lib/number_theory.py:473
Function
factordb_key_path
(examples_dir)
tests/conftest.py:75
Method
find_class
(self, module, name)
src/RsaCtfTool/lib/pickling.py:8
Method
format
(self, record)
src/RsaCtfTool/lib/customlogger.py:32
Method
handle_timeout
(self, _signum, _frame)
src/RsaCtfTool/lib/timeout.py:16
Function
known_primes
()
tests/conftest.py:41
Function
pytest_configure
(config)
tests/conftest.py:9
Function
repo_root
()
tests/conftest.py:20
Function
small_rsa_key
()
tests/conftest.py:30
Function
solve
(M, n, a, m, XX, invmod_Mn, F, x, beta)
src/RsaCtfTool/sage/roca_attack.py:5
Method
test
Attack test case
src/RsaCtfTool/attacks/abstract_attack.py:60
Method
test
(self)
src/RsaCtfTool/attacks/multi_keys/same_n_huge_e.py:42
Method
test
(self)
src/RsaCtfTool/attacks/multi_keys/hastads.py:46
Method
test
(self)
src/RsaCtfTool/attacks/multi_keys/common_modulus_related_message.py:43
Method
test
(self)
src/RsaCtfTool/attacks/single_key/partial_q.py:54
Method
test
(self)
src/RsaCtfTool/attacks/single_key/ecm.py:66
Method
test
(self)
src/RsaCtfTool/attacks/single_key/pastctfprimes.py:36
Method
test
(self)
src/RsaCtfTool/attacks/single_key/factorial_pm1_gcd.py:34
Method
test
(self)
src/RsaCtfTool/attacks/single_key/londahl.py:28
Method
test
(self)
src/RsaCtfTool/attacks/single_key/nonRSA.py:48
Method
test
(self)
src/RsaCtfTool/attacks/single_key/pollard_p_1.py:29
Method
test
(self)
src/RsaCtfTool/attacks/single_key/lehmer.py:24
Method
test
(self)
src/RsaCtfTool/attacks/single_key/rapid7primes.py:36
Method
test
(self)
src/RsaCtfTool/attacks/single_key/pollard_rho.py:26
Method
test
Nothing to test
src/RsaCtfTool/attacks/single_key/nullattack.py:18
Method
test
(self)
src/RsaCtfTool/attacks/single_key/hart.py:25
Method
test
(self)
src/RsaCtfTool/attacks/single_key/mersenne_primes.py:86
Method
test
(self)
src/RsaCtfTool/attacks/single_key/factordb.py:54
Method
test
(self)
src/RsaCtfTool/attacks/single_key/cube_root.py:35
Method
test
(self)
src/RsaCtfTool/attacks/single_key/system_primes_gcd.py:38
Method
test
(self)
src/RsaCtfTool/attacks/single_key/siqs.py:99
Method
test
(self)
src/RsaCtfTool/attacks/single_key/primorial_pm1_gcd.py:38
Method
test
(self)
src/RsaCtfTool/attacks/single_key/lucas_gcd.py:26
Method
test
(self)
src/RsaCtfTool/attacks/single_key/pisano_period.py:45
Method
test
(self)
src/RsaCtfTool/attacks/single_key/quadratic_sieve.py:32
Method
test
(self)
src/RsaCtfTool/attacks/single_key/mersenne_pm1_gcd.py:31
Method
test
(self)
src/RsaCtfTool/attacks/single_key/ecm2.py:67
Method
test
(self)
src/RsaCtfTool/attacks/single_key/highandlowbitsequal.py:36
Method
test
(self)
src/RsaCtfTool/attacks/single_key/noveltyprimes.py:35
Method
test
(self)
src/RsaCtfTool/attacks/single_key/wiener.py:30
Method
test
(self)
src/RsaCtfTool/attacks/single_key/williams_pp1.py:37
Method
test
(self)
src/RsaCtfTool/attacks/single_key/pollard_strassen.py:36
Method
test
(self)
src/RsaCtfTool/attacks/single_key/qicheng.py:35
Method
test
(self)
src/RsaCtfTool/attacks/single_key/factor_2PN.py:41
Method
test
(self)
src/RsaCtfTool/attacks/single_key/prime_base_collision.py:28
Method
test
(self)
src/RsaCtfTool/attacks/single_key/boneh_durfee.py:50
Method
test
(self)
src/RsaCtfTool/attacks/single_key/XYXZ.py:40
Method
test
FIXME: Implement testcase
src/RsaCtfTool/attacks/single_key/comfact_cn.py:35
Method
test
(self)
src/RsaCtfTool/attacks/single_key/fermat.py:24
Method
test
(self)
src/RsaCtfTool/attacks/single_key/lattice.py:42
Method
test
(self)
src/RsaCtfTool/attacks/single_key/classical_shor.py:38
Method
test
(self)
src/RsaCtfTool/attacks/single_key/neca.py:39
Method
test
(self)
src/RsaCtfTool/attacks/single_key/small_crt_exp.py:45
Method
test
(self)
src/RsaCtfTool/attacks/single_key/SQUFOF.py:22
Method
test
(self)
src/RsaCtfTool/attacks/single_key/lehman.py:25
Method
test
(self)
src/RsaCtfTool/attacks/single_key/smallfraction.py:36
Method
test
(self)
src/RsaCtfTool/attacks/single_key/strong_pseudoprime.py:26
Method
test
(self)
src/RsaCtfTool/attacks/single_key/z3_solver.py:89
Method
test
(self)
src/RsaCtfTool/attacks/single_key/kraitchik.py:24
Method
test
(self)
src/RsaCtfTool/attacks/single_key/dixon.py:32
Method
test
(self)
src/RsaCtfTool/attacks/single_key/compositorial_pm1_gcd.py:38
Method
test
(self)
src/RsaCtfTool/attacks/single_key/fibonacci_gcd.py:26
Method
test
(self)
src/RsaCtfTool/attacks/single_key/fermat_numbers_gcd.py:27
Method
test
(self)
src/RsaCtfTool/attacks/single_key/partial_d.py:65
← previous
next →
301–400 of 614, ranked by callers