einstein1981 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 10 Mar 2004 Posts: 395 Location: Venezuela , Caracas
|
Posted: Wed Apr 02, 2008 3:42 am Post subject: openssl lib problems in C |
|
|
Hello I don t quite know what to do , so I return here for input from probably much better programmers than me.
Here is the problem, i m trying to make a simple encrypt/decrypt program, using blowfish form openssl library
I did the encrypt part, it works, its validated, now i d love to do the decrypt part, but it just does not work.
Here is the pastebin of my code ( it ll be cleaner than copying it here)
http://cromestant.pastebin.com/f7a5a92dd
encrypt is validated by
openssl bf -in test.bin -K 000102030405060708090A0B0C0D0E0F -iv 0102030405060708 -d
I dont know whyit happens but its not working and i m stumped, its probably just a stupid thing
Some BG info on this :
I m programming an SPA system as a thesis for my undergrad degree, the "hard" part which is the pcap sniffer, is done,
Now the client is in JAVA , will encrypt a message, and the sniffer must decrypt the payload in order to authenticate.
So trying out enc/ dec in C to get familiar as I will need to decrypt java encrypted payload.
Thank you for the help
Charles. _________________ thesis. |
|