Software /
code /
prosody
Diff
util/jwt.lua @ 12702:f63176781940
util.crypto: More digests for sign/verify, use macros for clarity/consistency
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 02 Jul 2022 14:59:52 +0100 |
parent | 12699:b3d0c1457584 |
child | 12704:31a2bd84191d |
line wrap: on
line diff
--- a/util/jwt.lua Sat Jul 02 14:22:20 2022 +0100 +++ b/util/jwt.lua Sat Jul 02 14:59:52 2022 +0100 @@ -142,8 +142,8 @@ local algorithms = { HS256 = new_hmac_algorithm("HS256", hashes.hmac_sha256); ES256 = new_ecdsa_algorithm("ES256", crypto.ecdsa_sha256_sign, crypto.ecdsa_sha256_verify); - RS256 = new_rsa_algorithm("RS256", crypto.rsassa_pkcs1_256_sign, crypto.rsassa_pkcs1_256_verify); - PS256 = new_rsa_algorithm("PS256", crypto.rsassa_pss_256_sign, crypto.rsassa_pss_256_verify); + RS256 = new_rsa_algorithm("RS256", crypto.rsassa_pkcs1_sha256_sign, crypto.rsassa_pkcs1_sha256_verify); + PS256 = new_rsa_algorithm("PS256", crypto.rsassa_pss_sha256_sign, crypto.rsassa_pss_sha256_verify); }; local function new_signer(algorithm, key_input)