You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/07/03 08:43:00 UTC
[jira] [Resolved] (CAMEL-23766) camel-crypto: use a constant-time comparison for HMAC verification in HMACAccumulator
[ https://issues.apache.org/jira/browse/CAMEL-23766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrea Cosentino resolved CAMEL-23766.
--------------------------------------
Resolution: Fixed
> camel-crypto: use a constant-time comparison for HMAC verification in HMACAccumulator
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-23766
> URL: https://issues.apache.org/jira/browse/CAMEL-23766
> Project: Camel
> Issue Type: Improvement
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.14.9, 4.18.4, 4.22.0
>
>
> HMACAccumulator.validate() compares the expected and actual MAC byte-by-byte with an early-exit loop. This proposes using java.security.MessageDigest.isEqual(...) for a constant-time comparison, which is the standard practice for MAC/signature verification.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)