Drop YubiKey NEO support (closes #18) #63
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
YubiKey NEOs are legacy YubiKey devices, most of which contain unpatchable security vulnerabilities.
They have smaller buffer sizes than YK4 and YK5, which necessitates a whole bunch of conditional gating and buffer size calculations.
Getting rid of them simplifies this logic and allows us to assume consistent buffer sizes everywhere.
We never tested on NEOs anyway, and looking at the deleted code it seems it may have been miscalculating the NEO's buffer size!
If someone really wants to support NEOs, it shouldn't be that hard to restore, but the codebase is definitely cleaner without it.