Skip to content

Discarding the const from EVP_PKEY_get0_RSA() and EVP_PKEY_get0_EC_KEY() #21438

Answered by mattcaswell
mspncp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it should be fine. The main point to realise is that any changes made to a low level key won't be reflected back in the provider side key. I haven't gone through the various RSA_* functions to see why they are currently non-const - but it is likely to be related to caching of BN_BLINDING. Just don't go making changes to the various params p, q, etc and expect those updates to be reflected back in the provider side key.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mspncp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants