[openssl-dev] Guidance on browsing code base
Fan Zhang
bl4ck5unxx at gmail.com
Fri Oct 23 21:27:37 UTC 2015
Hi, all,
Happy to meet your guys by this email. I’m trying to dig into the code base and find an implementation of RSA signature. Naturally, I looked into the function `int RSA_sign` in file `crypto/rsa/rsa_sign.c`, which further calls the `RSA_private_encrypt` and `RSA_private_encrypt` calls the method `rsa_priv_enc` in `rsa->meth`.
83 int RSA_private_encrypt(int flen, const unsigned char *from,
84 unsigned char *to, RSA *rsa, int padding)
85 {
86 return (rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding));
87 }
After this, I got lost. I couldn't find when `rsa->meth` is initialized. Or maybe more directly, where is the actual code implementing the `rsa_priv_enc`? Thanks in advance!
Best
Fan
Sent from my iPhone
More information about the openssl-dev
mailing list