How do I check that the key is legacy #21538
-
For non-legacy keys it's safe to make _todata/_fromdata conversions. For engine-backed keys, it still can be done, but the resulting key will not be operable. How do I distinguish that the key is a legacy one (at least for RSA/EC)? |
Beta Was this translation helpful? Give feedback.
Answered by
mattcaswell
Jul 24, 2023
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
beldmit
-
OK. And what about the legacy structs - RSA/EC? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EVP_PKEY_get0_provider()
will return a reference to a provider associated with the key or NULL if there is none (implying it is blank or legacy).