Skip to content

Remove OPENSSL_ia32cap overrides in various test scripts [1.1.1] - #11934

Closed
bernd-edlinger wants to merge 2 commits into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:remove_ia32cap_overrides_1
Closed

bernd-edlinger wants to merge 2 commits into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:remove_ia32cap_overrides_1

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

The removed override was: OPENSSL_ia32cap=~0x200000200000000
which disables AESNI codepaths and PCLMULQDQ (useful for ghash).
It is unclear why this was done, but it probably just hides bugs.

[extended tests]

@mattcaswell FYI: 1.1.1 has the same problem, just in case you thing that is due
to the new provider design.

The removed override was: OPENSSL_ia32cap=~0x200000200000000
which disables AESNI codepaths and PCLMULQDQ (useful for ghash).
It is unclear why this was done, but it probably just hides bugs.

[extended tests]
@bernd-edlinger bernd-edlinger added the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label May 24, 2020
@bernd-edlinger bernd-edlinger changed the title [WIP] Remove OPENSSL_ia32cap overrides in various test scripts [1.1.1] Remove OPENSSL_ia32cap overrides in various test scripts [1.1.1] May 24, 2020
@bernd-edlinger

Copy link
Copy Markdown
Member Author

Taking out of WIP, the straight forward fix to remove AES-128-CBC-HMAC-SHA1
and AES-128-CBC-HMAC-SHA256 in the e_ossltest engine works for 1.1.1!
The remaining CI failures are unrelated (out of diskspace or so),
but unfortunately the same trick does not work for master.
As @kroeckx pointed out the e_ossltest engine must first be rewritten from
engine to provider, so I think that can be left as a TODO for now.

@t8m t8m added the triaged: cleanup The issue/pr deals with cleanup of comments/docs not altering code significantly label Aug 4, 2021
@t8m

t8m commented Sep 24, 2021

Copy link
Copy Markdown
Member

Is there equivalent PR for master branch? I do not think this is cleanly cherry-pickable and it cannot be merged to 1.1.1 unless done in master first.

@levitte

levitte commented Sep 25, 2021

Copy link
Copy Markdown
Member

It is unclear why this was done, but it probably just hides bugs.

To test that things work when those features aren't available, I presume

@t8m

t8m commented Sep 27, 2021

Copy link
Copy Markdown
Member

To test that things work when those features aren't available, I presume

I do not think so. It could be like that if the testcases were run both with the override and without it but apparently they are run only with the overrride.

This cipher is not helpful at all here and made the test cases fail
when AESNI is enabled.

[extended tests]
@bernd-edlinger

bernd-edlinger commented Sep 27, 2021 •

Copy link
Copy Markdown
Member Author

Yes, indeed. This is all about the AES-128-CBC-HMAC-SHA1 cipher, which gets in the way of the ossltest engine
doing the plain text encryption.
The trouble is that something is preventing the master version #11933 to work correctly.
I can imagine that it is not possible to remove a cipher from the default provider,
but I do not understand why it does not even work if I implement a complete
AES-128-CBC-HMAC-SHA1 replacement as in #16693 while the exact identical #16694 works.

@t8m t8m closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) triaged: cleanup The issue/pr deals with cleanup of comments/docs not altering code significantly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants