Hi guys,

Im trying to write my own SHA1 hash function in C. I have written it and i have 
verified it to work.

Now I am trying to modify the SHA1 function in the OpenSSL crypto library. The 
function that i modify is HASH_BLOCK_DATA_ORDER in sha_locl.h. I dont think 
mine is faster, but i want to try anyway. After modifying all the hash values, 
inserting the hash results in h0-h4, i run my simple ssl clinet-server program.

My client (modified hash function gives this error):
** ../client.c:79 Error loading private key from file
26:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad 
decrypt:evp_enc.c:461:
26:error:0906A065:PEM routines:PEM_do_header:bad decrypt:pem_lib.c:425:
26:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM 
lib:ssl_rsa.c:669:

My server gives this error (original openssl library):
6665:error:04077068:rsa routines:RSA_verify:bad signature:rsa_sign.c:181:
6665:error:1408807A:SSL routines:SSL3_GET_CERT_VERIFY:bad rsa 
signature:s3_srvr.c:2353:


I only modified the client OpenSSL library. Without modifications, the program 
works fine. Can anyone tell me what is wrong?

Thanks,
Vishnu.

_________________________________________________________________
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all

Reply via email to