Skip to content

verify mls membership and confirmation tags in constant time#2316

Closed
rootvector2 wants to merge 1 commit into
bcgit:mainfrom
rootvector2:mls-constant-time-tag-verify
Closed

verify mls membership and confirmation tags in constant time#2316
rootvector2 wants to merge 1 commit into
bcgit:mainfrom
rootvector2:mls-constant-time-tag-verify

Conversation

@rootvector2

Copy link
Copy Markdown

found by auditing mls MAC verification: PublicMessage.unprotect and Group compared a secret-keyed HMAC membership/confirmation tag against the wire value with early-exit Arrays.areEqual/Arrays.equals, a byte-by-byte timing oracle reachable from Group.handle(byte[]), so all three sites now use Arrays.constantTimeAreEqual like the rest of the library.

@dghgit

dghgit commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Thanks for the patch, merged with minor revisions. Now on https://www.bouncycastle.org/betas

@dghgit dghgit closed this Jun 12, 2026
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.

2 participants