add OpenSSL_add_all_digests/EVP_cleanup calls

initialize/destroy OpenSSL properly by calling OpenSSL_add_all_digests
in initialization and EVP_cleanup on shutdown