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

des: prevent error when using two key triple DES with a random key #20224

Closed
wants to merge 1 commit into from

Conversation

paulidale
Copy link
Contributor

Two key 3DES only sets two keys and the random generation errors out if fewer than three keys are required. It shouldn't.

Fixes #20212

  • documentation is added or updated
  • tests are added or updated

Two key 3DES only sets two keys and the random generation errors out if fewer
than three keys are required.  It shouldn't.

Fixes openssl#20212
@paulidale paulidale added branch: master Merge to master branch approval: review pending This pull request needs review by a committer approval: otc review pending This pull request needs review by an OTC member triaged: bug The issue/pr is/fixes a bug branch: 3.0 Merge to openssl-3.0 branch branch: 3.1 Merge to openssl-3.1 tests: present The PR has suitable tests present labels Feb 6, 2023
@paulidale paulidale self-assigned this Feb 6, 2023
@github-actions github-actions bot added the severity: fips change The pull request changes FIPS provider sources label Feb 6, 2023
@t8m t8m removed the approval: otc review pending This pull request needs review by an OTC member label Feb 7, 2023
@mattcaswell mattcaswell added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Feb 7, 2023
@openssl-machine
Copy link
Collaborator

24 hours has passed since 'approval: done' was set, but this PR has failing CI tests. Once the tests pass it will get moved to 'approval: ready to merge' automatically, alternatively please review and set the label manually.

@paulidale
Copy link
Contributor Author

Merged, thanks for the reviews.

@paulidale paulidale closed this Feb 8, 2023
openssl-machine pushed a commit that referenced this pull request Feb 8, 2023
Two key 3DES only sets two keys and the random generation errors out if fewer
than three keys are required.  It shouldn't.

Fixes #20212

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #20224)

(cherry picked from commit 587e040)
openssl-machine pushed a commit that referenced this pull request Feb 8, 2023
Two key 3DES only sets two keys and the random generation errors out if fewer
than three keys are required.  It shouldn't.

Fixes #20212

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #20224)
openssl-machine pushed a commit that referenced this pull request Feb 8, 2023
Two key 3DES only sets two keys and the random generation errors out if fewer
than three keys are required.  It shouldn't.

Fixes #20212

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #20224)

(cherry picked from commit 587e040)
@paulidale paulidale deleted the 3des-rand branch March 30, 2023 22:33
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 Merge to master branch branch: 3.0 Merge to openssl-3.0 branch branch: 3.1 Merge to openssl-3.1 severity: fips change The pull request changes FIPS provider sources tests: present The PR has suitable tests present triaged: bug The issue/pr is/fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openssl-3.0.7 Error while running speed test for DES-EDE (ECB, CBC, CFB , OFB modes )
4 participants