where is the struct RSA defined??

Tomas Kuthan tomas.kuthan at oracle.com
Wed May 16 23:03:51 EST 2012


On 05/16/12 14:30, 霏霏 wrote:
> In the source code of openssh(my source code is 6.0 for Openbsd):
> The content below is Rsa.h
>
> #ifndef RSA_H
> #define RSA_H
>
> #include<openssl/bn.h>
> #include<openssl/rsa.h>
>
> void     rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
> int     rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
> void     rsa_generate_additional_parameters(RSA *);
>
> #endif                /* RSA_H */
>
> Question:
>      Where is the file openssl/rsa.h? So where is the struct RSA defined??

Well, as the filepath suggests, in OpenSSL:
http://cvs.openssl.org/fileview?f=openssl/crypto/rsa/rsa.h&v=1.91

  (look for "struct rsa_st")

Tomas



More information about the openssh-unix-dev mailing list