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. |
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 |
Thanks Guttorm. I got the functions that implements it through grep.
|
All times are GMT -5. The time now is 01:09 PM. |