Skip to content

Rework EVP_MD support, enhance existing functions#9391

Closed
levitte wants to merge 5 commits intoopenssl:masterfrom
levitte:provider-digest-flags
Closed

Rework EVP_MD support, enhance existing functions#9391
levitte wants to merge 5 commits intoopenssl:masterfrom
levitte:provider-digest-flags

Conversation

@levitte
Copy link
Member

@levitte levitte commented Jul 16, 2019

This adds missing support for providers in diverse EVP_MD and EVP_MD_CTX functions, and does a bit of cleanup as well.

This is similar to #9328, but for EVP_MD

@levitte levitte added the branch: master Applies to master branch label Jul 16, 2019
@levitte levitte force-pushed the provider-digest-flags branch from 8768fa4 to 67cca34 Compare July 23, 2019 05:23
@levitte
Copy link
Member Author

levitte commented Jul 23, 2019

Darn, it looks like my rework of the functions in crypto/evp/evp_utils.c causes havoc. I suspect that we still haven't transferred all the constants from the legacy stuff to the new stuff...

@levitte
Copy link
Member Author

levitte commented Jul 24, 2019

It turned out that I was wrong regarding -2 for unsupported control types. At least in the EVP API, -1 seems to be the return value for that.

@levitte levitte force-pushed the provider-digest-flags branch 2 times, most recently from c720faf to 6844d68 Compare July 25, 2019 16:18
@levitte
Copy link
Member Author

levitte commented Jul 25, 2019

Ping. Re-review needed

levitte added 5 commits August 1, 2019 09:01
A lot of the different numbers associated with digests are really
algorithm parameters.  block size, digest length, that sort of
thing.
…faces

Also clean up EVP_MD_CTX_ctrl(), which did use these interfaces, but
development since allows for more elegant code.
The latter should only be ussed with legacy methods.
@levitte levitte force-pushed the provider-digest-flags branch from 6844d68 to 13ee76d Compare August 1, 2019 07:04
@levitte
Copy link
Member Author

levitte commented Aug 12, 2019

Ping!

@mattcaswell mattcaswell added the approval: done This pull request has the required number of approvals label Aug 12, 2019
@levitte
Copy link
Member Author

levitte commented Aug 12, 2019

Merged.

2893111 Make more use of OSSL_PARAM for digests
6a3b7c6 Adapt diverse EVP_MD functions to use get_params and set_params interfaces
3d21446 Rework the provider digest constructor to provide implementation get_params
f1d3df3 Adapt the provider digests for more use of OSSL_PARAM
5acb2be HMAC: use EVP_MD_flags(), not EVP_MD_meth_get_flags()

@levitte levitte closed this Aug 12, 2019
levitte added a commit that referenced this pull request Aug 12, 2019
A lot of the different numbers associated with digests are really
algorithm parameters.  block size, digest length, that sort of
thing.

Reviewed-by: Matt Caswell <[email protected]>
(Merged from #9391)
levitte added a commit that referenced this pull request Aug 12, 2019
…faces

Also clean up EVP_MD_CTX_ctrl(), which did use these interfaces, but
development since allows for more elegant code.

Reviewed-by: Matt Caswell <[email protected]>
(Merged from #9391)
levitte added a commit that referenced this pull request Aug 12, 2019
levitte added a commit that referenced this pull request Aug 12, 2019
levitte added a commit that referenced this pull request Aug 12, 2019
The latter should only be ussed with legacy methods.

Reviewed-by: Matt Caswell <[email protected]>
(Merged from #9391)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants