-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVP_PKEY-based algorithm type #220
Comments
Perhaps this is similar to what you are asking #94 (comment)? |
Yep, that's exactly what I'm talking about. |
Sorry for the late reply, this completely went under my radar.
The most obvious issue is that it requires listing all the possible algorithms somewhere which is not something we currently do.
Ok lets assume we restrict the problem to standard algorithms and put the list in a function (so its not included unless used): We can (and probably should) change the internal api for the bases classes to accept EVP_PKEY's directly but I don't think theres a way to figure out which algorithm was intended purely based on the pkey. Theres already duplicates (rsa&pss) and I only expect the number of these cases to grow as new algorithms are likely only going to be variations of the existing ones. |
If we used branching with a limited set of algorithms, The idea of supporting keys more generically is definitely on the road map. |
The idea is not to replace the existing system, but rather to provide a function that constructs one of the existing (standardized) algorithm by providing a key. Basically you put in a 256bit ecdsa key and get back an instance of the ec256 algorithm. I think we could totally support that, with the only issue being that rs* and ps* use the same key type. So we would need to either default to one of them or skip rsa entirely, both of which don't sound like a good idea to me. TLDR: |
What would you like to see added?
EVP_PKEY-based algorithm type
Additional Context
It seems like it would be possible to have an algorithm type that's built from an EVP_PKEY directly rather than needing to parse from PEM data (and branching between RSA, ECC, etc). Is there anything preventing such a thing or a reason why that wouldn't be wanted?
The text was updated successfully, but these errors were encountered: