Skip to content

Add constant-time equals for ByteString#1799

Open
JakeWharton wants to merge 1 commit intomasterfrom
jw.equals-constant-time.2026-04-09
Open

Add constant-time equals for ByteString#1799
JakeWharton wants to merge 1 commit intomasterfrom
jw.equals-constant-time.2026-04-09

Conversation

@JakeWharton
Copy link
Copy Markdown
Collaborator

This is a best-effort comparison for use in cryptographic operations so as to not leak timing information.

Closes #1797

This is a best-effort comparison for use in cryptographic operations so as to not leak timing information.
@JakeWharton JakeWharton requested a review from swankjesse April 10, 2026 03:33
@JakeWharton
Copy link
Copy Markdown
Collaborator Author

Wow BRUTAL variance on CI

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.

Add ByteString.equals(other: ByteString, constantTime: Boolean) overload

1 participant