How can I copy RSA structure

2011-05-03 Thread rale77
Hello, Is there any function for copy RSA structure (something like BN_dup for BIGNUM), I can not find nothing till now? I created RSA structure called rsa with RSA_generate_key, but I now need deep copy of this object, I suppuse that I can do that with new operator RSA * copy = new RSA(*rsa),

Re: Remove RSA from EVP_PKEY structure

2010-01-11 Thread rale77
rale77 wrote: > > Hello, > > How can I remove RSA structure form EVP_PKEY previosly added to EPP_PKEY > with EVP_PKEY_assign_RSA function? I have one RSA object named rsa and > EVP_PKEY object named evp and their relation is : > rsa = evp->pkey.rsa > How to

Remove RSA from EVP_PKEY structure

2010-01-11 Thread rale77
Hello, How can I remove RSA structure form EVP_PKEY previosly added to EPP_PKEY with EVP_PKEY_assign_RSA function? I have one RSA object named rsa and EVP_PKEY object named evp and their relation is : rsa = evp->pkey.rsa How to remove their bound and then delete EVP_PKEY (with EVP_PKEY_free(e