Skip to content

chore(parquet/metadata): use constant time compare for signature verify - #528

Merged
zeroshade merged 2 commits into
apache:mainfrom
zeroshade:constant-compare-parquet
Oct 3, 2025
Merged

chore(parquet/metadata): use constant time compare for signature verify#528
zeroshade merged 2 commits into
apache:mainfrom
zeroshade:constant-compare-parquet

Conversation

@zeroshade

Copy link
Copy Markdown
Member

Rationale for this change

Doesn't hurt to use a timing resistant comparison for verifying the signature despite the fact that there isn't really a way to exploit it.

What changes are included in this PR?

Switch bytes.Equal to subtle.ConstantTimeCompare.

Are these changes tested?

Existing unit tests cover it.

Are there any user-facing changes?

No

@zeroshade
zeroshade requested review from lidavidm and pitrou October 3, 2025 12:19
@zeroshade
zeroshade merged commit 5897dbd into apache:main Oct 3, 2025
16 checks passed
@zeroshade
zeroshade deleted the constant-compare-parquet branch March 27, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants