Hi guys, This is the HASH_BLOCK_DATA_ORDER (../crypto/sha/sha_locl.h) function prototype : static void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num)
As I have mentioned before in a previous thread, I am trying to modify this function to use my own code in my crappy embedded system for my university project. I am using this for my input data : unsigned long *data = (unsigned long *)p; Most of the time, my custom function works. But when OpenSSL passes a non 32-bit alligned address, my calculations will go wrong. So my data is not alligned to the byte boundary. How do I compile OpenSSL to align itself to 32-bit boundaries? I know I can solve this easily by just working with bytes, but then my function will be slower than OpenSSL. Any ideas? Regards, Vishnu. _________________________________________________________________ Easily edit your photos like a pro with Photo Gallery. http://get.live.com/photogallery/overview