Updated the RFC and the code accordingly. Made use of high-level EVP functions instead of low level stuff