]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: jwt: Add support for RSA-PSS signatures (PS256 algorithm)
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 7 Mar 2023 16:43:57 +0000 (17:43 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 8 Mar 2023 09:43:04 +0000 (10:43 +0100)
commit447a38f3872e1ffb9251813bd0848543d84ad5f1
treeebb9e7eef40fceb96b05f069d25cf7e3018a4e59
parentbce0c0c37afb55715c9593da0cad0dc2f0c843f8
MINOR: jwt: Add support for RSA-PSS signatures (PS256 algorithm)

This patch adds the support for the PS algorithms when verifying JWT
signatures (rsa-pss). It was not managed during the first implementation
and previously raised an "Unmanaged algorithm" error.
The tests use the same rsa signature as the plain rsa tests (RS256 ...)
and the implementation simply adds a call to
EVP_PKEY_CTX_set_rsa_padding in the function that manages rsa and ecdsa
signatures.
The signatures in the reg-test were built thanks to the PyJWT python
library once again.
doc/configuration.txt
reg-tests/jwt/jws_verify.vtc
src/jwt.c
src/sample.c