-
-
Notifications
You must be signed in to change notification settings - Fork 794
ML-KEM/ML-DSA part 2: param builder #2451
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
Conversation
If you can put the openssl-sys changes into their own PR, it makes it considerably easier to review. thanks. |
No problem. |
8720778
to
935f6cf
Compare
@alex this is just the param builder and the related Argon changes now, I believe. |
Will look tomorrow, thanks.
…On Fri, Aug 29, 2025 at 12:16 AM Christopher Swenson < ***@***.***> wrote:
*swenson* left a comment (sfackler/rust-openssl#2451)
<#2451 (comment)>
@alex <https://github.com/alex> this is just the param builder and the
related Argon changes now, I believe.
—
Reply to this email directly, view it on GitHub
<#2451 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBB6QUDQV46UYFDOOL33P7H2JAVCNFSM6AAAAACFDKWLTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZVGY3DAOJQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
All that is necessary for evil to succeed is for good people to do nothing.
|
Merge conflicts, sorry :-( |
Splitting up sfackler#2405 into a few parts as suggest by @alex. This adds the param-builder and other openssl-sys changes. Original commit message: Add internal module to simplify working with OSSL_PARAM structure We discussed that this API is not well suitable for the end users but still, it required for several operations in OpenSSL 3.* so instead of calling to FFI for every use of this API, this introduces simple wrappers that allow building of the params and their usage. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Co-authored-by: Justus Winter <justus@sequoia-pgp.org>
935f6cf
to
69182d1
Compare
@alex no worries, rebased |
643db6e
to
131cddd
Compare
…which is not available yet Use more precise dead code annotations
@alex anything else you wanted to address with this PR? |
Sigh, sorry there was a review comment that apparently never got submitted (and is caught in limbo). Unfortunately the lifetime changes aren't enough:
this compiles, and has a UAF. |
@alex Absolutely right. For some reason I thought adding I think this latest commit correctly adds the lifetime bound, e.g., I ran this test based on yours: #[cfg(test)]
mod test {
#[test]
fn test_osssl_param_builder() {
let mut p = crate::ossl_param::OsslParamBuilder::new().unwrap();
{
let key = std::ffi::CString::new(b"my str").unwrap();
p.add_octet_string(&key, &[]).unwrap();
}
p.to_param().unwrap();
}
} Before, it compiled (incorrectly), but now it fails to compile as expected with:
|
Great, will review later this afternoon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your patience here
Thanks! |
Splitting up #2405 into a few parts as suggest by @alex.
This adds the param-builder.
Original commit message:
Add internal module to simplify working with OSSL_PARAM structure We discussed that this API is not well suitable for the end users but still, it required for several operations in OpenSSL 3.* so instead of calling to FFI for every use of this API, this introduces simple wrappers that allow building of the params and their usage.