Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 9:30
professionaljkirkerx19-Dec-11 9:30 
GeneralRe: DES Encryption Pin
Randor 19-Dec-11 10:36
professional Randor 19-Dec-11 10:36 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 10:53
professionaljkirkerx19-Dec-11 10:53 
GeneralPerfect Match! Pin
jkirkerx19-Dec-11 12:13
professionaljkirkerx19-Dec-11 12:13 
GeneralRe: Perfect Match! Pin
Randor 19-Dec-11 14:03
professional Randor 19-Dec-11 14:03 
GeneralRe: Perfect Match! Pin
jkirkerx19-Dec-11 14:49
professionaljkirkerx19-Dec-11 14:49 
GeneralRe: DES Encryption Pin
jkirkerx16-Dec-11 7:59
professionaljkirkerx16-Dec-11 7:59 
AnswerSymmetric-key - Initialization Vector Pin
jkirkerx16-Dec-11 18:04
professionaljkirkerx16-Dec-11 18:04 
My function works good, only I don't get the exact value or match I expect.

I read up on Initialization vector, and used CyrptSetKeyParam to add my IV, but this occurs in the background, and you can't really check it, to make sure that's what happened.

If the IV is just a prefix, that goes in front of the data to be encrypted, then is it common practice to skip the CryptSetKeyParam, and just prefix the data to be encrypted?

I remarked out the CryptSetKeyParam, and I did get different values returned in the buffer, but not enough to get the results I'm looking for.

If I experiment with it, then I need to write a whole new buffer routine that adds the extra space, and do new calculations.

Without:
I˜a‚ú|¢-Øø×"©¨Nþt¾dÃMN££Ð¢æÀDµ£N»£jŽg5„Äþti«L6±†à©Cþìü

With:
€&§¶Í>ªÈÇ3,­í&%®•Ï¢?¾(ÞÆø0Ç6Ÿ§ìÆ·(õæd¢‡ôKFo{ü‘	(!ÛÏß·Èh‰¶

GeneralRe: Symmetric-key - Initialization Vector Pin
Chris Losinger17-Dec-11 9:38
professionalChris Losinger17-Dec-11 9:38 
QuestionInterview Preparation Pin
pix_programmer15-Dec-11 18:23
pix_programmer15-Dec-11 18:23 
AnswerRe: Interview Preparation Pin
Chandrasekharan P15-Dec-11 22:07
Chandrasekharan P15-Dec-11 22:07 
Questionmemory leaking in playing video using DirectShow. Pin
Le@rner14-Dec-11 23:48
Le@rner14-Dec-11 23:48 
QuestionRe: memory leaking in playing video using DirectShow. Pin
CPallini15-Dec-11 1:39
mveCPallini15-Dec-11 1:39 
AnswerRe: memory leaking in playing video using DirectShow. Pin
Le@rner15-Dec-11 17:47
Le@rner15-Dec-11 17:47 
QuestionConnecting to SQL CE from MFC Pocket PC 2003 Pin
Vieru Dorin14-Dec-11 21:10
Vieru Dorin14-Dec-11 21:10 
AnswerRe: Connecting to SQL CE from MFC Pocket PC 2003 Pin
Richard MacCutchan14-Dec-11 22:20
mveRichard MacCutchan14-Dec-11 22:20 
QuestionLibrary to solve optimization matrix Pin
qwerty_201114-Dec-11 16:49
qwerty_201114-Dec-11 16:49 
AnswerRe: Library to solve optimization matrix Pin
Stefan_Lang14-Dec-11 22:34
Stefan_Lang14-Dec-11 22:34 
GeneralRe: Library to solve optimization matrix Pin
qwerty_201115-Dec-11 16:30
qwerty_201115-Dec-11 16:30 
GeneralRe: Library to solve optimization matrix Pin
Stefan_Lang15-Dec-11 22:31
Stefan_Lang15-Dec-11 22:31 
QuestionUse the environment provided by the application instead from system environment. Pin
Member 848801414-Dec-11 16:12
Member 848801414-Dec-11 16:12 
AnswerRe: Use the environment provided by the application instead from system environment. Pin
kakan15-Dec-11 0:05
professionalkakan15-Dec-11 0:05 
AnswerRe: Use the environment provided by the application instead from system environment. Pin
Randor 15-Dec-11 5:46
professional Randor 15-Dec-11 5:46 
GeneralRe: Use the environment provided by the application instead from system environment. Pin
Member 848801418-Dec-11 21:25
Member 848801418-Dec-11 21:25 
GeneralRe: Use the environment provided by the application instead from system environment. Pin
Randor 19-Dec-11 6:38
professional Randor 19-Dec-11 6:38 

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.