Topic: RSA verify callback
Hi,
I would like to use my own RSA verify function instead of the built-in one.
A way to do this a to use set the callback function using wolfSSL_CTX_SetRsaVerifyCb().
I don't understand well what exactly is the return value as well as the parameter char ** out as this not specified in the documentation.
typedef int (*CallbackRsaVerify)(WOLFSSL* ssl,
unsigned char* sig, unsigned int sigSz,
unsigned char** out, const unsigned char* keyDer,
unsigned int keySz, void* ctx);
What I understand is :
- The parameter out is a pointer on pointer of the decrypted signature (in other words the hash)
- The return value is the size of the decrypted signature (the size of the hash)
Is my understanding correct? otherwise, what do the parameters represent?
Thanks in advance,
Okba