Basically My application decrypt an encrypted image, as part of that process I am invoking couple of openssl API's in a series.
BIO *mem = NULL;
RSA *prsa = NULL;
pem_password_cb *cb = .... ( Note it points a valid function -- static int gen_cb(char *buf, int size, int rwflag, void *u))
mem = BIO_new_mem_buf(key, -1); //Note : key pointing to my key buffer it was a valid one.
PEM_read_bio_RSAPrivateKey(mem, NULL, cb, NULL);
I kepts couple of logs , As soon as I call PEM_read_bio_RSAPrivateKey()
, I see the following messages.
enter image description here
This was a working code, and i am porting as-is my appliction to to openbmc ( note openssl version -1.1.1g)