Ask Your Question
0

How to use the coppersmith method in sagemath?

asked 3 years ago

Periodic_1_6 gravatar image

updated 3 years ago

slelievre gravatar image

How to use the coppersmith method in sagemath?

Z^2 + 665748*Z + 1494997090560 = 1501297920*W

to be fair, I am writing to you what it is. It is an exercise but it is understood well.

https://www.linkedin.com/feed/update/...

Preview: (hide)

Comments

What is it ? What is your aim ?

FrédéricC gravatar imageFrédéricC ( 3 years ago )

@FrédéricC (1) https://en.wikipedia.org/wiki/Coppers... (2) I need it for a factorization algorithm

Periodic_1_6 gravatar imagePeriodic_1_6 ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

Max Alekseyev gravatar image

updated 3 years ago

Coppersmith's method for univariate polynomials is provided as .small_roots() method, or via PARI/GP as gp.zncoppersmith() function:

sage: R.<Z> = ZZ[]
sage: gp.zncoppersmith( Z^2+665748*Z+1494997090560, 1501297920, 2^14  )
[11520, 15852]
Preview: (hide)
link

Comments

@Max Alekseyev thank you! what does 2^14 mean?

Periodic_1_6 gravatar imagePeriodic_1_6 ( 3 years ago )
1

Bound for the roots. I've provided links to documentation for both implementations.

Max Alekseyev gravatar imageMax Alekseyev ( 3 years ago )

@Max Alekseyev thank you

Periodic_1_6 gravatar imagePeriodic_1_6 ( 3 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 3 years ago

Seen: 1,406 times

Last updated: Dec 19 '21