Skip to content
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

Add null digest implementation to the default provider #17016

Closed
wants to merge 2 commits into from

Conversation

t8m
Copy link
Member

@t8m t8m commented Nov 12, 2021

This is necessary to keep compatibility with 1.1.1.

Fixes #16660

Checklist
  • tests are added or updated

This is necessary to keep compatibility with 1.1.1.

Fixes openssl#16660
@t8m t8m added branch: master approval: review pending triaged: bug branch: 3.0 labels Nov 12, 2021
@github-actions github-actions bot added the severity: fips change label Nov 12, 2021
}

#undef PROV_FUNC_DIGEST_FINAL
#define PROV_FUNC_DIGEST_FINAL(name, dgstsize, fin) \
Copy link
Member

@mattcaswell mattcaswell Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wonder why this custom version of PROV_FUNC_DIGEST_FINAL is necessary. The only difference seems to be the check outsz >= dgstsize which presumably will always be true for the NULL digest since dgstize is 0. Or perhaps this triggers compilation warnings? Is that the justification? Possibly a comment explaining that if that is the case.

Copy link
Member Author

@t8m t8m Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this causes compilation warnings otherwise.

@mattcaswell mattcaswell added approval: done and removed approval: review pending labels Nov 12, 2021
@openssl-machine openssl-machine removed the approval: done label Nov 13, 2021
@openssl-machine
Copy link
Collaborator

openssl-machine commented Nov 13, 2021

This pull request is ready to merge

@openssl-machine openssl-machine added the approval: ready to merge label Nov 13, 2021
rhuijben pushed a commit to rhuijben/openssl that referenced this issue Nov 15, 2021
This is necessary to keep compatibility with 1.1.1.

Fixes #16660

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from openssl/openssl#17016)

(cherry picked from commit bef9b48)
rhuijben pushed a commit to rhuijben/openssl that referenced this issue Nov 15, 2021
This is necessary to keep compatibility with 1.1.1.

Fixes #16660

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from openssl/openssl#17016)
@t8m
Copy link
Member Author

t8m commented Nov 15, 2021

Merged to master and 3.0 branches. Thank you for the review.

@t8m t8m closed this Nov 15, 2021
ramikhaldi pushed a commit to ramikhaldi/openssl that referenced this issue Nov 21, 2021
This is necessary to keep compatibility with 1.1.1.

Fixes openssl#16660

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from openssl#17016)
@t8m t8m deleted the null-md-prov branch May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge branch: master branch: 3.0 severity: fips change triaged: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants