Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openssl lib problems in C
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
einstein1981
Guru
Guru


Joined: 10 Mar 2004
Posts: 395
Location: Venezuela , Caracas

PostPosted: Wed Apr 02, 2008 3:42 am    Post subject: openssl lib problems in C Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum