ctx) { perror("Error in CTX \n"); } if (EVP_PKEY_keygen_init(ctx) <= 0) { perror("Error in EVP_PKEY_keygen_init \n"); } if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) <= 0) { perror("Error in EVP_PKEY_CTX_set_rsa_keygen_bits \n"); } /* Generate key */ if ...
而一旦公钥与私钥泄密则整个传输流程都将会变得不安全,最好的保护效果是RSA密钥在每次通信时都进行变换...
Thanks a lot. This worked. Next logical question is: using this public key, how do I decrypt a signed message? This signed message was signed by the corresponding private key, and naturally, my application does not have that. My application has the cert, and this signed message. How to ...