Skip to content

Properly serialize public key operations when built against Botan < 3.11 - #177

Merged
randombit merged 1 commit into
masterfrom
jack/pk-lock
May 7, 2026
Merged

Properly serialize public key operations when built against Botan < 3.11#177
randombit merged 1 commit into
masterfrom
jack/pk-lock

Conversation

@randombit

Copy link
Copy Markdown
Owner

All prior versions of the library had bugs affecting certain algorithms (namely XMSS, LMS, FrodoKEM, ML-KEM, and ML-DSA) which would cause incorrect computation or memory errors if multiple threads attempt to perform operations at the same time on the same key object.

This lock requires std since otherwise we do not have a mutex available. So now building this crate no_std requires Botan 3.11.0 or later be used, since that's the only situation we can safely skip the lock.

@randombit
randombit force-pushed the jack/pk-lock branch 4 times, most recently from 485fbcd to 101cf6f Compare May 7, 2026 02:13
All prior versions of the library had bugs affecting certain algorithms (namely
XMSS, LMS, FrodoKEM, ML-KEM, and ML-DSA) which would cause incorrect computation
or memory errors if multiple threads attempt to perform operations at the same
time on the same key object.

This lock requires std since otherwise we do not have a mutex available. So now
building this crate no_std requires Botan 3.11.0 or later be used, since that's
the only situation we can safely skip the lock.
@randombit
randombit merged commit 1222b19 into master May 7, 2026
17 checks passed
@randombit
randombit deleted the jack/pk-lock branch May 7, 2026 02:21
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.

1 participant