trussed-dev / fido-authenticator

FIDO authenticator Trussed app
Apache License 2.0
36 stars 10 forks source link

Return error if credential ID is too long #17

Closed robin-nitrokey closed 2 years ago

robin-nitrokey commented 2 years ago

Instead of panicking, we now return a RequestTooLarge error if the encrypted and serialized credential ID is longer than 255 bytes.

Fixes: https://github.com/solokeys/fido-authenticator/issues/15