ssl - Encrypt data with using public key file in C language -


i need pass data server2.c through server1.c in middle. before calling ssl_write() want encrypt data using public key file pubkey.pem of server2.c server1.c cannot understand data , writes server2.c

what system call should use takes data , public key file arguments?

what system call should use takes data , public key file arguments?

in c language openssl, there no arguments in program argc , argv. there functions , parameters.

in openssl, use evp functions it. in particular, evp_seal encrypt , evp_open decrypt using public key cryptography. see evp(3) man pages more details. or see openssl's evp wiki page details.

there evp_encrypt , evp_decrypt functions, used symmetric key encryption, , not public key encryption.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -