Skip to content

ML-DSA OpenSSL support#14773

Merged
alex merged 2 commits into
pyca:mainfrom
reaperhulk:mldsa-openssl
May 4, 2026
Merged

ML-DSA OpenSSL support#14773
alex merged 2 commits into
pyca:mainfrom
reaperhulk:mldsa-openssl

Conversation

@reaperhulk

@reaperhulk reaperhulk commented Apr 30, 2026

Copy link
Copy Markdown
Member

ready for review

@reaperhulk reaperhulk force-pushed the mldsa-openssl branch 3 times, most recently from 4af7022 to 54c823f Compare May 4, 2026 02:27
@reaperhulk reaperhulk marked this pull request as ready for review May 4, 2026 02:28
let pki = asn1::parse_single::<PrivateKeyInfo<'_>>(&pkcs8_der).unwrap();
Ok(asn1::parse_single::<MlDsaPrivateKey>(pki.private_key).unwrap())
cfg_if::cfg_if! {
if #[cfg(any(CRYPTOGRAPHY_IS_BORINGSSL, CRYPTOGRAPHY_IS_AWSLC))] {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm 99% sure boringssl also has a getseed API we can use

Comment thread src/rust/cryptography-key-parsing/src/pkcs8.rs
Comment thread src/rust/cryptography-key-parsing/src/spki.rs
Comment thread src/rust/cryptography-openssl/src/mldsa.rs Outdated
Comment thread src/rust/cryptography-openssl/src/mldsa.rs
Comment thread src/rust/src/backend/keys.rs
Comment thread src/rust/src/backend/keys.rs
reaperhulk added 2 commits May 3, 2026 22:16
Unify is_mldsa_pkey across BoringSSL/AWS-LC/OpenSSL 3.5+ and collapse the
duplicated match arms in pkcs8/spki/keys. Replace silly match-with-guards
with if/else chain in MlDsaVariant::from_pkey for OpenSSL 3.5+.
@alex alex enabled auto-merge (squash) May 4, 2026 03:19
@alex alex merged commit 2e31639 into pyca:main May 4, 2026
72 checks passed
@reaperhulk reaperhulk deleted the mldsa-openssl branch May 4, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants