mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2015-02-12, 12:23   #1
radugafener
 
Feb 2015

3 Posts
Default MOD calculation / reversing

Hi all,

c = a^3 MOD b

"c" (297 digits) and "b" (308 digits) are known, they are not prime. Do I have chance to find "a" ?

(b-1)/3 does not have a cube root.
(b-1) MOD 3 = 0
b MOD 9 = 4
I have a valid pair ("a" and "c"). But, "c" is variable, so as "a".
"c" has to have 247 digits in hexadecimal format and last ~190 digits must or / and can be zero 0.

If there is a solution in case I replace "b" with other number which I decide, what shall I do to calculate "a" ?

Regards,
radugafener is offline   Reply With Quote
Old 2015-02-12, 14:15   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

29×3×7 Posts
Default

Quote:
Originally Posted by radugafener View Post
Hi all,

c = a^3 MOD b

"c" (297 digits) and "b" (308 digits) are known, they are not prime. Do I have chance to find "a" ?

(b-1)/3 does not have a cube root.
(b-1) MOD 3 = 0
b MOD 9 = 4
I have a valid pair ("a" and "c"). But, "c" is variable, so as "a".
"c" has to have 247 digits in hexadecimal format and last ~190 digits must or / and can be zero 0.

If there is a solution in case I replace "b" with other number which I decide, what shall I do to calculate "a" ?

Regards,
Ok, so you are trying to break a kilobit RSA implementation in which the public exponent is 3.

Good luck.
xilman is online now   Reply With Quote
Old 2015-02-12, 14:33   #3
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22×1,549 Posts
Default

Quote:
Originally Posted by radugafener View Post
Hi all,

c = a^3 MOD b

"c" (297 digits) and "b" (308 digits) are known, they are not prime. Do I have chance to find "a" ?

(b-1)/3 does not have a cube root.
(b-1) MOD 3 = 0
b MOD 9 = 4
I have a valid pair ("a" and "c"). But, "c" is variable, so as "a".
"c" has to have 247 digits in hexadecimal format and last ~190 digits must or / and can be zero 0.

If there is a solution in case I replace "b" with other number which I decide, what shall I do to calculate "a" ?

Regards,
Indeed, you can know all of a, b and c and yet still not be able to figure out the private key that matches 3. As xilman points out this is classic RSA. To find your answer it is sufficient to factorise b. If the b you have was chosen carefully as b=pq and both p and q are near, but not too near, each other in size then your chances of ever factorising using currently known mathematical methods are very slim. You might have a better chance by using a $5 wrench.
retina is online now   Reply With Quote
Old 2015-02-12, 14:41   #4
radugafener
 
Feb 2015

3 Posts
Default

:-) xilman, I am not intending to break kilobit RSA.
As I wrote that I have chance to replace "b" & "public exponent" with any number. But, I have to calculate "a" exactly because of "c" which has to have 247 digits (last ~190 digits should be zero, this is very important).
How can I choose / create my own RSA key (308 digits) with all modulus ?
radugafener is offline   Reply With Quote
Old 2015-02-12, 14:49   #5
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

140648 Posts
Default

Quote:
Originally Posted by radugafener View Post
I am not intending to break kilobit RSA.
Okay, if you say so.
Quote:
Originally Posted by radugafener View Post
As I wrote that I have chance to replace "b" & "public exponent" with any number. But, I have to calculate "a" exactly because of "c" which has to have 247 digits (last ~190 digits should be zero, this is very important).
How can I choose / create my own RSA key (308 digits) with all modulus ?
Choose b=anything, e=1, d (private key)=1 and you're done.

If you can choose your own b then you can also compute d so reversing a from c is trivial.

Last fiddled with by retina on 2015-02-12 at 14:51
retina is online now   Reply With Quote
Old 2015-02-12, 15:41   #6
radugafener
 
Feb 2015

3 Posts
Default

:) thanks
I just changed "public exponent" to 1. It is enough for me. "c" and "a" became same, and I didn't touch to "b". Because now "a" is smaller than "b" and "a" MOD "b" is always "a" = "c"
regards,
radugafener is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GHZ-days calculation Q tcharron PrimeNet 4 2014-06-27 23:27
P-1 probability calculation James Heinrich PrimeNet 33 2011-01-23 16:40
mod p calculation help kurtulmehtap Math 3 2010-10-11 15:02
CPU Credit Calculation storm5510 Software 8 2009-09-25 21:06
MMO Property Calculation Bundu Puzzles 22 2009-09-22 01:30

All times are UTC. The time now is 18:46.


Fri Jul 16 18:46:18 UTC 2021 up 49 days, 16:33, 1 user, load averages: 3.86, 4.93, 4.71

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.