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

C / C++ / MFC

 
QuestionUsing Flash Files? Pin
Zero_One_ADO5-Oct-04 23:13
Zero_One_ADO5-Oct-04 23:13 
AnswerRe: Using Flash Files? Pin
toxcct5-Oct-04 23:19
toxcct5-Oct-04 23:19 
AnswerRe: Using Flash Files? Pin
Maximilien6-Oct-04 0:33
Maximilien6-Oct-04 0:33 
GeneralDirectShow Pin
defused5-Oct-04 22:43
defused5-Oct-04 22:43 
GeneralRe: DirectShow Pin
jerry0davis6-Oct-04 2:54
jerry0davis6-Oct-04 2:54 
GeneralRe: DirectShow Pin
defused10-Oct-04 15:36
defused10-Oct-04 15:36 
GeneralHELP:using windows common font dialog box Pin
vineet_bhargava5-Oct-04 22:43
vineet_bhargava5-Oct-04 22:43 
GeneralEncryption/Decryption Routines AES Pin
Paolo Ponzano5-Oct-04 22:09
Paolo Ponzano5-Oct-04 22:09 
Hello to everybody,
I tried to use the implementation of George Anescu[^] for encoding some text but I'm not sure I encrpyt correctly the data..... datas are taken from a buffer and are in plaintext, I allocate a buffer using

<br />
char *buffer_in=(char*)calloc(strlen(mainbuffer)+1,sizeof(char));<br />
char *buffer_out=(char*)calloc(strlen(mainbuffer)+1,sizeof(char));<br />


and the encrpyt it using

<br />
oRijndael.MakeKey(key, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",16,16);<br />
oRijndael.Encrypt(buffer_in, *buffer_out, lenght,2);		//2 = CFB<br />


where lenght is strlen(mainbuffer)+1;

when I've executed oRijndael.Encrypt(....) I've got into buffer_out the data encrypted, but using strlen I get a lenght < of buffer_in, should I use _msize? the problem is that using oRijndael.Decrypt I've a lenght that's not the one of buffer_in,so Decrypt fails...
Hope someone has used this implementation of AES and can help me, thanks

Paolo
GeneralCEdit &amp; Enter Key Pin
AbinThomas5-Oct-04 21:32
AbinThomas5-Oct-04 21:32 
GeneralRe: CEdit & Enter Key Pin
Sujan Christo6-Oct-04 0:51
Sujan Christo6-Oct-04 0:51 
GeneralApplication slows down after running for hours Pin
Indrawati5-Oct-04 21:17
Indrawati5-Oct-04 21:17 
GeneralRe: Application slows down after running for hours Pin
Joaquín M López Muñoz5-Oct-04 21:22
Joaquín M López Muñoz5-Oct-04 21:22 
GeneralRe: Application slows down after running for hours Pin
2249175-Oct-04 21:22
2249175-Oct-04 21:22 
QuestionWhy would int be able to exceed its capacity? Pin
Link26005-Oct-04 20:09
Link26005-Oct-04 20:09 
AnswerRe: Why would int be able to exceed its capacity? Pin
PJ Arends5-Oct-04 20:28
professionalPJ Arends5-Oct-04 20:28 
AnswerRe: Why would int be able to exceed its capacity? Pin
Michael Dunn5-Oct-04 20:31
sitebuilderMichael Dunn5-Oct-04 20:31 
GeneralRe: Why would int be able to exceed its capacity? Pin
Link26005-Oct-04 21:28
Link26005-Oct-04 21:28 
GeneralRe: Why would int be able to exceed its capacity? Pin
jan larsen5-Oct-04 22:50
jan larsen5-Oct-04 22:50 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct5-Oct-04 23:06
toxcct5-Oct-04 23:06 
GeneralRe: Why would int be able to exceed its capacity? Pin
jan larsen6-Oct-04 1:05
jan larsen6-Oct-04 1:05 
GeneralRe: Why would int be able to exceed its capacity? Pin
Arsalan Malik6-Oct-04 1:46
Arsalan Malik6-Oct-04 1:46 
GeneralRe: Why would int be able to exceed its capacity? Pin
markkuk6-Oct-04 1:54
markkuk6-Oct-04 1:54 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct6-Oct-04 2:07
toxcct6-Oct-04 2:07 
GeneralRe: Why would int be able to exceed its capacity? Pin
Arsalan Malik6-Oct-04 2:21
Arsalan Malik6-Oct-04 2:21 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct6-Oct-04 6:22
toxcct6-Oct-04 6:22 

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.