Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 10:21
(Steven Hicks)n+11-Dec-03 10:21 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 10:58
igor19601-Dec-03 10:58 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 11:16
(Steven Hicks)n+11-Dec-03 11:16 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 11:29
igor19601-Dec-03 11:29 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 11:33
(Steven Hicks)n+11-Dec-03 11:33 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 11:42
igor19601-Dec-03 11:42 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 11:50
(Steven Hicks)n+11-Dec-03 11:50 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 12:20
igor19601-Dec-03 12:20 
I'm almost giving up. But check this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/cryptencrypt.asppadding
A string, typically added when the last plaintext block is short. For example, if the block length is 64 bits and the last block contains only 40 bits, then 24 bits of padding must be added to the last block. The padding string may contain zeros, alternating zeros and ones, or some other pattern. Applications that use CryptoAPI need not add padding to their plaintext before it is encrypted, nor do they have to remove it after decrypting. This is all handled automatically


So, maybe you need to increase dwLength and make it even with 8 bytes length.
However, why CryptEncrypt is not failing then? Or maybe it does?





"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 13:17
(Steven Hicks)n+11-Dec-03 13:17 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 10:04
(Steven Hicks)n+11-Dec-03 10:04 
Generalmem leak detection Pin
GDavy1-Dec-03 3:07
GDavy1-Dec-03 3:07 
GeneralRe: mem leak detection Pin
Antti Keskinen1-Dec-03 10:04
Antti Keskinen1-Dec-03 10:04 
Generalitoa Pin
styve1-Dec-03 2:55
styve1-Dec-03 2:55 
GeneralRe: itoa Pin
GDavy1-Dec-03 2:58
GDavy1-Dec-03 2:58 
GeneralRe: itoa Pin
Michael P Butler1-Dec-03 3:20
Michael P Butler1-Dec-03 3:20 
GeneralForm Designer Pin
Luiz Antonio Picanço1-Dec-03 2:41
Luiz Antonio Picanço1-Dec-03 2:41 
GeneralRe: Form Designer Pin
Antti Keskinen1-Dec-03 10:12
Antti Keskinen1-Dec-03 10:12 
GeneralRe: Form Designer Pin
Luiz Antonio Picanço2-Dec-03 0:45
Luiz Antonio Picanço2-Dec-03 0:45 
Questionnot stops Wait Cursor - why? Pin
vgrigor1-Dec-03 2:41
vgrigor1-Dec-03 2:41 
AnswerRe: not stops Wait Cursor - why? Pin
David Crow1-Dec-03 3:29
David Crow1-Dec-03 3:29 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 3:37
vgrigor1-Dec-03 3:37 
AnswerRe: not stops Wait Cursor - why? Pin
KaЯl1-Dec-03 4:16
KaЯl1-Dec-03 4:16 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 4:21
vgrigor1-Dec-03 4:21 
GeneralRe: not stops Wait Cursor - why? Pin
KaЯl1-Dec-03 4:40
KaЯl1-Dec-03 4:40 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 4:47
vgrigor1-Dec-03 4:47 

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.