Make Digest conform to our naming conventions.
Replace deprecated RSA_generate_key by RSA_generate_key_ex.