Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding Application Pin
Member 2266405-May-03 3:58
Member 2266405-May-03 3:58 
GeneralRe: Hiding Application Pin
jmkhael5-May-03 4:20
jmkhael5-May-03 4:20 
GeneralRe: Hiding Application Pin
David Crow5-May-03 4:14
David Crow5-May-03 4:14 
GeneralRe: Hiding Application Pin
Joseph Dempsey5-May-03 6:09
Joseph Dempsey5-May-03 6:09 
GeneralRe: Hiding Application Pin
David Crow5-May-03 6:54
David Crow5-May-03 6:54 
GeneralRe: Hiding Application Pin
Baris Kurtlutepe5-May-03 13:00
Baris Kurtlutepe5-May-03 13:00 
GeneralRe: Hiding Application Pin
jmkhael5-May-03 6:21
jmkhael5-May-03 6:21 
QuestionRSA implementation - how to store huge numbers? Pin
Vikram A Punathambekar5-May-03 3:16
Vikram A Punathambekar5-May-03 3:16 
I'm implementing RSA for the first time. Err...don't ask why I'm doing what's already been done Blush | :O , but it's for my internship.

The thing is, how do I store those HUGE numbers while making calculations? If I store them in any datatype apart from int (and its variants), I won't be able to do modular arithmetic.

This is a sample run of my app:

<br />
Enter p and q 7 17<br />
DEBUG info   n=119<br />
DEBUG info   m=96<br />
Enter e 5<br />
Enter d 77<br />
Plaintext is 19<br />
Ciphertext is 66<br />
Recovered plaintext is 0<br />


Here m is (p-1)(q-1).

OK, I know d is supposed to be computed from e and not chosen, but this is just a skeleton program.

Oh, yeah, I'm doing it on Win2K with VS 6.0 if it makes any difference.

Thanks,
Vikram.

"There's probably a Nish-like alien answering VB questions on a CP forum as we speak." - adamUK in The Lounge, discussing aliens and parallel universes.

"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
AnswerRe: RSA implementation - how to store huge numbers? Pin
Bartosz Bien5-May-03 3:53
Bartosz Bien5-May-03 3:53 
GeneralRe: RSA implementation - how to store huge numbers? Pin
markkuk5-May-03 4:09
markkuk5-May-03 4:09 
GeneralRe: RSA implementation - how to store huge numbers? Pin
Bartosz Bien5-May-03 4:14
Bartosz Bien5-May-03 4:14 
GeneralRe: RSA implementation - how to store huge numbers? Pin
Vikram A Punathambekar6-May-03 20:43
Vikram A Punathambekar6-May-03 20:43 
AnswerRe: RSA implementation - how to store huge numbers? Pin
markkuk5-May-03 4:08
markkuk5-May-03 4:08 
Generaladress value of pointer NULL Pin
Willem B5-May-03 3:00
Willem B5-May-03 3:00 
GeneralRe: adress value of pointer NULL Pin
Willem B5-May-03 3:07
Willem B5-May-03 3:07 
GeneralRe: adress value of pointer NULL Pin
David Crow5-May-03 4:07
David Crow5-May-03 4:07 
GeneralRe: adress value of pointer NULL Pin
Willem B5-May-03 4:29
Willem B5-May-03 4:29 
GeneralRe: adress value of pointer NULL Pin
David Crow5-May-03 4:58
David Crow5-May-03 4:58 
GeneralRe: adress value of pointer NULL Pin
Joaquín M López Muñoz5-May-03 3:22
Joaquín M López Muñoz5-May-03 3:22 
GeneralCFileDialog implementation... Pin
macmac385-May-03 2:19
macmac385-May-03 2:19 
GeneralRe: CFileDialog implementation... Pin
jmkhael5-May-03 3:00
jmkhael5-May-03 3:00 
GeneralRe: CFileDialog implementation... Pin
macmac385-May-03 3:37
macmac385-May-03 3:37 
GeneralRe: CFileDialog implementation... Pin
jmkhael5-May-03 4:16
jmkhael5-May-03 4:16 
GeneralRe: CFileDialog implementation... Pin
David Crow5-May-03 4:02
David Crow5-May-03 4:02 
GeneralRe: CFileDialog implementation... Pin
macmac385-May-03 4:05
macmac385-May-03 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.