-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a safe way to check if a key is valid. #40
Comments
For future reference, related comment => #39 (comment). |
It feels like most of these would be responsibility of the CBOR decoder... I mean, most of the possible random exceptions you would get are coming from Seems like the responsibility could lie on cbor to respond to the question if the cbor bytes are actually something that would decode without throwing...? |
Staring discussion in cabo/cbor-ruby#14. |
FWIW #50 released in |
See cedarcode/webauthn-ruby#222 and #39
To check if a COSE key is valid, it seems we have to do:
This is not quite enough, because a
NoMemoryError
is also possible (#39). It would be nice to have a safe way to check whether an untrusted byte string is a valid key, e.g.:COSE::Key.valid?(public_key_bytes)
The text was updated successfully, but these errors were encountered: