Skip to content

Commit fc465f3

Browse files
author
Roland Hedberg
committed
Merge pull request #35 from tpazderka/fix-PS512
Rename PS521 to PS512 according to standard
2 parents be3e94d + f312f0c commit fc465f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/jwkest/jws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def verify(self, msg, sig, key):
193193

194194
'PS256': PSSSigner(SHA256),
195195
'PS384': PSSSigner(SHA384),
196-
'PS521': PSSSigner(SHA512),
196+
'PS512': PSSSigner(SHA512),
197197

198198
'none': None
199199
}

tests/test_3_jws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_signer_ps512():
317317
# Key has to be big enough > 512+512+2
318318
keys = [RSAKey(key=import_rsa_key_from_file(full_path("./size2048.key")))]
319319
#keys[0]._keytype = "private"
320-
_jws = JWS(payload, alg="PS521")
320+
_jws = JWS(payload, alg="PS512")
321321
_jwt = _jws.sign_compact(keys)
322322

323323
_rj = factory(_jwt)

0 commit comments

Comments
 (0)