Click here to Skip to main content
15,898,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CryptDecrypt Failure please help Pin
Randor 26-Nov-08 10:09
professional Randor 26-Nov-08 10:09 
GeneralRe: CryptDecrypt Failure please help Pin
monsieur_jj26-Nov-08 14:01
monsieur_jj26-Nov-08 14:01 
GeneralRe: CryptDecrypt Failure please help Pin
Randor 26-Nov-08 17:46
professional Randor 26-Nov-08 17:46 
GeneralRe: CryptDecrypt Failure please help Pin
monsieur_jj26-Nov-08 21:32
monsieur_jj26-Nov-08 21:32 
GeneralRe: CryptDecrypt Failure please help Pin
monsieur_jj27-Nov-08 19:37
monsieur_jj27-Nov-08 19:37 
GeneralRe: CryptDecrypt Failure please help Pin
Randor 28-Nov-08 12:59
professional Randor 28-Nov-08 12:59 
GeneralRe: CryptDecrypt Failure please help Pin
monsieur_jj29-Nov-08 3:52
monsieur_jj29-Nov-08 3:52 
GeneralRe: CryptDecrypt Failure please help Pin
Randor 29-Nov-08 16:47
professional Randor 29-Nov-08 16:47 
I looked over the RSA documentation and found that they are the same. The RSA standards documents are here:

Look at PKCS #5:
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-5v2/pkcs5v2-0.doc

The padding method is described in section 6.1.1 and it states that the padding values are equal to the length of the message modulo 8.

So lets imagine the message you want to encrypt is 60 bytes long.

(60 mod 8) is equal to 0x4

So your padding would be:

0x4 0x4 0x4 0x4

Pretty easy huh?


If you take a look at the padding method described in section 10.3 in the PKCS #7 documents it outlines the same padding. You can verify it here:
ftp://ftp.rsasecurity.com/pub/pkcs/doc/pkcs-7.doc


So yes, PKCS #5 is exactly the same padding as PKCS #7.

Best Wishes,
-David Delaune
GeneralRe: CryptDecrypt Failure please help Pin
monsieur_jj30-Nov-08 3:44
monsieur_jj30-Nov-08 3:44 
Questionhow to display popup menu when clicked on a button on a dialog box? Pin
puppya25-Nov-08 20:26
puppya25-Nov-08 20:26 
AnswerRe: how to display popup menu when clicked on a button on a dialog box? Pin
SandipG 25-Nov-08 20:36
SandipG 25-Nov-08 20:36 
GeneralRe: how to display popup menu when clicked on a button on a dialog box? Pin
puppya25-Nov-08 21:05
puppya25-Nov-08 21:05 
AnswerRe: how to display popup menu when clicked on a button on a dialog box? Pin
Hamid_RT25-Nov-08 20:38
Hamid_RT25-Nov-08 20:38 
RantRe: how to display popup menu when clicked on a button on a dialog box? Pin
enhzflep25-Nov-08 20:40
enhzflep25-Nov-08 20:40 
QuestionOpen a .txt file with a press of a button in MFC Pin
AnithaSubramani25-Nov-08 20:20
AnithaSubramani25-Nov-08 20:20 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
enhzflep25-Nov-08 20:22
enhzflep25-Nov-08 20:22 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
Cedric Moonen25-Nov-08 20:26
Cedric Moonen25-Nov-08 20:26 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
Rajesh R Subramanian25-Nov-08 20:57
professionalRajesh R Subramanian25-Nov-08 20:57 
JokeRe: Open a .txt file with a press of a button in MFC Pin
CPallini25-Nov-08 21:28
mveCPallini25-Nov-08 21:28 
JokeRe: Open a .txt file with a press of a button in MFC Pin
Hamid_RT25-Nov-08 21:46
Hamid_RT25-Nov-08 21:46 
JokeRe: Open a .txt file with a press of a button in MFC Pin
Rajesh R Subramanian26-Nov-08 3:58
professionalRajesh R Subramanian26-Nov-08 3:58 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
Hamid_RT25-Nov-08 21:02
Hamid_RT25-Nov-08 21:02 
QuestionQuery regarding CMenu Pin
Rahul Vaishnav25-Nov-08 19:54
Rahul Vaishnav25-Nov-08 19:54 
AnswerRe: Query regarding CMenu Pin
Iain Clarke, Warrior Programmer26-Nov-08 0:32
Iain Clarke, Warrior Programmer26-Nov-08 0:32 
QuestionOnLButtonDown dosn't work in IE, but work in ActiveX Control Test Container ? Pin
oppstp25-Nov-08 19:49
oppstp25-Nov-08 19:49 

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.