Skip to content

fix: cleanup after ciphersuite related changes - #2152

Merged
kkohbrok merged 2 commits into
mainfrom
konrad/storage_kat_pq_suites
Aug 5, 2026
Merged

kkohbrok merged 2 commits into
mainfrom
konrad/storage_kat_pq_suites

Conversation

@kkohbrok

@kkohbrok kkohbrok commented Aug 4, 2026

Copy link
Copy Markdown
Member

This PR adds a KEM specific check for the supports function of the libcrux provider.

It also adds two missing entries to the storage stability test vector.

The libcrux crypto provider's supports() method checked the AEAD,
signature, hash, and HPKE AEAD algorithms but not the KEM. It returned
Ok for MLS_128_MLKEM768_AES256GCM_SHA384_Ed25519 even though the
hpke-rs libcrux backend cannot derive ML-KEM key pairs, so HPKE key
generation failed at runtime with CryptoLibraryError. Check the KEM
against the algorithms the backend implements.
PR #2118 added MLS_128_MLKEM768X25519_CHACHA20POLY1305_SHA384_MLDSA44
and MLS_128_MLKEM768_AES256GCM_SHA384_Ed25519 to the RustCrypto
provider without regenerating the storage stability test vectors, so
the nightly full-matrix run failed on the unwrap of the missing
entries. Add the two generated entries and keep the existing ones
unchanged, since the test exists to prove that storage written by
older code still loads.
@kkohbrok kkohbrok changed the title Konrad/storage kat pq suites fix: cleanup after ciphersuite related changes Aug 4, 2026
@kkohbrok
kkohbrok marked this pull request as ready for review August 4, 2026 09:39
@kkohbrok
kkohbrok requested a review from a team as a code owner August 4, 2026 09:39
@github-actions github-actions Bot added the size/s label Aug 4, 2026
@kkohbrok
kkohbrok merged commit 92bb5f9 into main Aug 5, 2026
47 checks passed
@kkohbrok
kkohbrok deleted the konrad/storage_kat_pq_suites branch August 5, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants