diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-07-01 18:51:15 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-07-01 18:51:15 +0100 |
commit | ae16ddcac75cb94ea1d699b19b0bd8ed37fd5030 (patch) | |
tree | 03f4c64ca004dab7eb46d1932d5e286dcad4ed1e /util/envload.lua | |
parent | d9ce2d5e4e6ebc7a09d71a590b1243ca5f4d5f85 (diff) | |
download | prosody-ae16ddcac75cb94ea1d699b19b0bd8ed37fd5030.tar.gz prosody-ae16ddcac75cb94ea1d699b19b0bd8ed37fd5030.zip |
util.jwt: Add support/tests for ES256 via improved API and using util.crypto
In many cases code will be either signing or verifying. With asymmetric
algorithms it's clearer and more efficient to just state that once, instead of
passing keys (and possibly other parameters) with every sign/verify call.
This also allows earlier validation of the key used.
The previous (HS256-only) sign/verify methods continue to be exposed for
backwards-compatibility.
Diffstat (limited to 'util/envload.lua')
0 files changed, 0 insertions, 0 deletions