PEM_read_bio_RSAPublicKey equivalent API which returns EVP_PKEY

2021-04-11 Thread Paramashivaiah, Sunil
Hi All, While migrating from 1.0.2 to 3.0, we are replacing deprecated APIs "RSA_public_encrypt" and "RSA_public_decrypt" with "EVP_PKEY_encrypt" and "EVP_PKEY_decrypt". In 1.0.2, "RSA_public_encrypt" and "RSA_public_decrypt" were taking RSA public key as parameter created using "PEM_read_bio

Re: EVP_MAC_init() in 3.0 alpha 13

2021-04-11 Thread Dr Paul Dale
Did you attempt to pass NULL for the key and zero for it's length to the EVP_MAC_init() call? Pauli On 5/4/21 10:51 pm, Hal Murray wrote: It used to take just a ctx. Now it also wants a key+length and a params. I have some simple/hack code to time 2 cases. The first gives it the key each ti

Re: error: redefinition of ‘struct rsa_meth_st’

2021-04-11 Thread Dr Paul Dale
You shouldn't be accessing the internal of a private structure. That structure was made private for a reason and duplicating it in your engine will break when we change the structure's contents. Your engine should be using the EVP_PKEY_meth_set_* function to do what you want (for 1.1.1).  For

error: redefinition of ‘struct rsa_meth_st’

2021-04-11 Thread Shariful Alam
Hello, Hope you guys are doing well. I'm trying to develop an RSA engine. My engine was somewhat working until I try to integrate my engine with an apache httpd server. After installing the httpd from the source code, it turns out that, I can't compile my engine anymore. I get the following error w