LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   RSA implementation in openssl-0.9.8-a (https://www.linuxquestions.org/questions/programming-9/rsa-implementation-in-openssl-0-9-8-a-415240/)

sapana 02-14-2006 05:48 AM

RSA implementation in openssl-0.9.8-a
 
I am trying to understand implementation of rsa in opensssl.
I came across this structure in rsa.h file (openssl/crypto/rsa) -:


struct rsa_meth_st
{
const char *name;
int (*rsa_pub_enc)(int flen,const unsigned char *from,
unsigned char *to,
RSA *rsa,int padding);
};


But I couldnot find implementation of this function anywhere.

If anyone could please help me.

Thanks a lot.

Guttorm 02-16-2006 07:22 AM

Hi

You're thinking of "rsa_pub_enc" right? The way I read it, it's a pointer to a function, not a declaration. So most likely, you will have several different implementations, if you grep for it, you might see stuff like

struct rsa_meth_st smth;
/* set function pointer */
smth.rsa_pub_enc = some_function_name;
/* call it */
smth.rsa_pub_enc(...);

grepping for "rsa_pub_enc = " might give you all functions, and all those functions should have implementations.

Hope this helps,
Guttorm

sapana 02-21-2006 07:50 AM

Thanks Guttorm. I got the functions that implements it through grep.


All times are GMT -5. The time now is 01:09 PM.