Skip to content

#266: Added conditional attribute to pack the PkcsOaepParams struct o… #272

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

Merged

Conversation

ivozeba
Copy link
Contributor

@ivozeba ivozeba commented May 9, 2025

While debugging a separate issue I discovered the cryptoki-sys build script and noticed that you can conditionally pack structs on windows by simply adding #[cfg_attr(windows, repr(packed))].

This resolves #266 and only affects the PkcsOaepParams struct (until we find another one).

…arams struct on windows only.

Signed-off-by: Ivo Zeba <[email protected]>
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

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

Seems to align well with your related issue. Thanks a lot for the detailed description there!

@wiktor-k wiktor-k enabled auto-merge May 12, 2025 09:35
Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

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

It seems to be improving things so... let's go with it 🚀

@wiktor-k wiktor-k merged commit ac8f628 into parallaxsecond:main May 12, 2025
8 checks passed
@ivozeba ivozeba deleted the PkcsOaepParams-windows-packing-fix branch May 12, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PkcsOaepParams mis-aligned
3 participants