-
Notifications
You must be signed in to change notification settings - Fork 48
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
Is there a workaround for RHEL 9.3/4 OpenSSL 3.0.7 EC export compressed bug? #348
Comments
We could try to detect the condition in code either as an heuristic, or based on probing what openssl version we are dealing with. |
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 22, 2024
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 22, 2024
Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 22, 2024
Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 22, 2024
openssl/openssl#16595 OpenSSL <= 3.0.7 unconditionally exports EC public keys in compressed format. Workaround this by creating the uncompressed format for correct import. Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 22, 2024
openssl/openssl#16595 OpenSSL <= 3.0.7 unconditionally exports EC public keys in compressed format - create the uncompressed format for correct import Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
Shifting the discussion to the PR #349 |
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 23, 2024
openssl/openssl#16595 OpenSSL <= 3.0.7 unconditionally exports EC public keys in compressed format - create the uncompressed format for correct import Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 23, 2024
openssl/openssl#16595 OpenSSL <= 3.0.7 unconditionally exports EC public keys in compressed format - create the uncompressed format for correct import Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 23, 2024
openssl/openssl#16595 OpenSSL <= 3.0.7 unconditionally exports EC public keys in compressed format - create the uncompressed format for correct import Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
space88man
added a commit
to space88man/pkcs11-provider
that referenced
this issue
Feb 23, 2024
openssl/openssl#16595 Providers may export EC points in compressed format, e.g., OpenSSL < 3.0.8, and this format may not actually match the OSSL_PARAM "point-format". Use heuristics to detect compressed points and convert to uncompressed. Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
simo5
pushed a commit
that referenced
this issue
Feb 26, 2024
openssl/openssl#16595 Providers may export EC points in compressed format, e.g., OpenSSL < 3.0.8, and this format may not actually match the OSSL_PARAM "point-format". Use heuristics to detect compressed points and convert to uncompressed. Addresses #348 Signed-off-by: S-P Chan <[email protected]>
The-Mule
pushed a commit
to The-Mule/pkcs11-provider
that referenced
this issue
Mar 12, 2024
openssl/openssl#16595 Providers may export EC points in compressed format, e.g., OpenSSL < 3.0.8, and this format may not actually match the OSSL_PARAM "point-format". Use heuristics to detect compressed points and convert to uncompressed. Addresses latchset#348 Signed-off-by: S-P Chan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
To be clear this is a bug in RHEL 9.3 OpenSSL 3.0.7
ec_export
but cannot be fixed in time for 9.4.I am wondering if there is a workaround that pkcs11-provider can do during keymgmt import.
With OpenSSL 3.0.7 bug EC public key comparison will always fail: during export the point-format says "uncompressed" but the actual data in the OSSL_PARAMS is compressed (about half the size).
Thus
cmp_attr(key1, key2, CKA_P11PROV_PUB_KEY)
fails. I have observed that the data is always about half the size(compressed) compared to the uncompressed data from pkcs11-provider.A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
s_server loads
Operating environment (please complete the following information):
Token and application used (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: