duo-labs / py_webauthn

Pythonic WebAuthn 🐍
https://duo-labs.github.io/py_webauthn
BSD 3-Clause "New" or "Revised" License
856 stars 171 forks source link

Fix PS256 and RS256 public key validation #51

Closed hawi74 closed 5 years ago

hawi74 commented 5 years ago

Fix validating PS256 and RS256 public keys. This always failed since modulus is required to be at least 2048 bits long.

Changed the tests a bit to make them run for both ES256 and RS256 algs.

futureimperfect commented 5 years ago

LGTM, thanks!