Repository navigation
Added EVP_KDF object - #8808
Added EVP_KDF object#8808slontis wants to merge 7 commits into
Conversation
|
ping |
levitte
left a comment
There was a problem hiding this comment.
Other than a few nits, I'm happy with what I see
|
ping |
| dc->fn((const EVP_KDF *)nm->data, nm->name, NULL, dc->arg); | ||
| } | ||
|
|
||
| void EVP_KDF_do_all(void (*fn) |
There was a problem hiding this comment.
Why do we need this function? It doesn't seem to be called by anything and isn't tested or documented.
|
hi @mattcaswell - the point of this PR was to make it resemble the EVP_MAC interface as closely as possible. The 'why do we need this?' questions need to also be addressed for the MAC case that this emulates. |
Yes I agree with that. If the answer is "we don't need these things" then lets not add them here and instead have a PR to remove them from MAC. |
The do functions can be removed - I am more reluctant to remove the getbyname and addkdf until a suitable replacement is implemented in the providers. |
Ok - well at least add a |
|
The functions you discuss are inspired from the corresponding for ciphers and digests. They are basically direct copies. |
Yes I know. That doesn't automatically imply we should add equivalent functions for KDF if they are superseded by other calls. |
|
Well, considering these APIs are new and unreleased, we can remove all that cruft when moving them to be provider provided. So maybe that's the right thing to do, to work on that directly instead of perfecting a legacy implementation. |
|
With "these", I mean both EVP_MAC and EVP_KDF |
|
I was just trying to get them in a similiar starting state - so they should both be fairly easy to change to providers. |
|
Added TODO(3.0) comments. Removed do_all methods. |
mattcaswell
left a comment
There was a problem hiding this comment.
@levitte please reconfirm
Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Richard Levitte <[email protected]> (Merged from #8808)
Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Richard Levitte <[email protected]> (Merged from #8808)
This replaces EVP_KDF_METHOD with EVP_KDF and makes the interfaces more consistent with the EVP_MAC interfaces.
This may not need to be backported to 1.1.0 if the new_id is sufficent. This change should hopefully make it easier to incorporate into the new provider objects.
Checklist