I have no idea about cryptography... I just made this compile. Please review this carefully.
there's still a remaining warning warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup when compiling, but it isn't fatal and I tried to do the minimum of changes
warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup
when compiling, but it isn't fatal and I tried to do the minimum of changes