]> git.kaiwu.me - haproxy.git/commit
MINOR: jws: introduce jws_b64_hmac_signature() function for HMAC signing
authorMia Kanashi <chad@redpilled.dev>
Wed, 6 May 2026 21:17:41 +0000 (00:17 +0300)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 7 May 2026 13:19:15 +0000 (15:19 +0200)
commitc9e76e5bb150c052dd77b5d48d5957f39028b5d3
tree5adf9feb10413db32705a315e181c92f7b975a8b
parent6900278ac6bce6f4892a79a50b737a8756bab646
MINOR: jws: introduce jws_b64_hmac_signature() function for HMAC signing

New jws_b64_hmac_signature() duplicates the same functionality as
jws_b64_signature(), but for the use case of HMAC signing.
Intended to be used for ACME EAB.

OpenSSL allows to use EVP_PKEY for HMAC functionality, so
jws_b64_signature() could be reused, but the problem is that although
isn't deprecated it was removed in BoringSSL, and was removed
(due to BoringSSL roots) but then readded back in AWS-LC, because of
"legacy clients" (citing them), for that reason alone I say that having
a dedicated function for hmac is better, HMAC() macro seems to be widely
supported unlike other ways of doing same thing. Another alternative
would be to use EVP_MD API, but it was introduced in OpenSSL 3.0,
so not as widely supported.
include/haproxy/jws.h
src/jws.c