Skip to content

Protect Ed25519 key objects from external mutation - #53

Open
OskarEichler wants to merge 1 commit into
RubyCrypto:mainfrom
OskarEichler:codex/key-immutability
Open

Protect Ed25519 key objects from external mutation#53
OskarEichler wants to merge 1 commit into
RubyCrypto:mainfrom
OskarEichler:codex/key-immutability

Conversation

@OskarEichler

Copy link
Copy Markdown

Duplicates and freezes internal seed, keypair, and public-key material, while returning defensive copies from serialization readers. Caller or returned-string mutation can no longer corrupt signing/verification state.

Verified with mutation, round-trip, sign, and verify models plus the full upstream suite.

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