Dear Victor,
Instead of writing a new engine,I did the follwoing:-
What I tried doing was that I replaced the AES C code in the file openssl-0.9.7a/crypto/aes/aes_core.c with my own C implementation of AES,ofcourse I kept all the method signatures same.
The only difference in the coding is that the default code earlier was using hard coded tables to do lookups ,instead I generate those tables before lookup.I call the gentables function in all the methods that require tables.
I build the openssl again and it compiles without error.The problem is that now when I try to run openvpn application,it gives a segementation fault.This is happening in my code only as I had given a few printf statements in my code to ascertain that my code was being called.I cannot make out the problem although I tried debugging using gdb.Maybe it has got something to do with the fact that the tables are hardcoded but my tables are generated when the aes methods are called,I am not sure.
I wanted to try the above approach instead of writing my own engine.Tell me is this approach possible or I have to go to the engine approach only.If possible how?.
Please help me out
Thanks
Enjoy this Diwali with Y! India Click here