Fix native Ed448 detection without crypto fallback#199
Open
neilberkman wants to merge 3 commits into
Open
Conversation
Validate native Curve448 support against the RFC 8032 known-answer vector without depending on the optional pure Erlang fallback. Probe real EdDSA operations when reporting capabilities and cover fallback transitions in an isolated VM.
Use fallback-independent RFC 8032 vectors for both Edwards curves, cache operational capability checks by active adapter configuration, and make isolated native coverage explicit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cryptoadapters for both Curve25519 and Curve448.Details
The Curve448 startup probe previously asked
jose_jwa_curve448to cross-verify a native signature. Withcrypto_fallback: false, that verifier has no SHAKE256 backend, so JOSE rejected a workingjose_curve448_cryptoadapter.The startup probes now validate candidate adapters directly against RFC 8032 blank and non-empty known-answer vectors for Ed25519 and Ed448. Operational capability checks run outside
jose_server, while short server-issued snapshots and conditional cache writes prevent partial or stale results without allowing a slow custom adapter to block configuration calls.Cache generations use references to prevent ABA reuse across server restarts. Applied fallback state, native FIPS state, selected adapter code, and JOSE's transitive fallback modules participate in invalidation. Rolling code upgrades lazily migrate older cache tables.
Verification
Fixes #198