Hello, I'm a newbie, just to begin reading the programming API. I'm researching the functions involved in a client-server application environment (using RSA algorithm).
So, If not wrong RSA_new() and RSA_generate_key(...) functions generate the pair of keys (the public and the private ones), but, 1) I don't reach to understand how could I do to extract the public key for sending it (so, in this case, crypted) to the other side... 2) Furthermore, I wonder if RSA structure must be remounted there (while is needed by RSA_..._decrypt(...) functions). Sorry for the lacked time... I'll appreciate very much any idea of you. In fact, I googled unsuccesfully in order to find test programms in C/C++ to verify, a) the pair of keys generation, both in client and server, b) the connection of client to server, and the client public key transfering to server, d) the signature of the public server key, by the public client one, and e) the normal encrypt - decrypt operations, involved in a session... Thanks in advance... S.