Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce ID length for new credentials
This patch implements the following changes to reduce the ID length for new credentials: - Rename the old Credential type to FullCredential and introduce a StrippedCredential type and a Credential enum to differentiate between full and reduced credential data. - Flatten the credential data to reduce encoding overhead. - Remove the RP id from the credential data to reduce the total length. - Add a marker field use_short_id to FullCredential so that we don’t change the credential ID for existing RKs. To do: - Add tests for EncryptedSerializedCredential serialized length (should be less than 255). - Add tests for FullCredential serialized length (should fit into one littlefs block). - Investigate if we can remove more fields from StrippedCredential. Fixes: Nitrokey#29
- Loading branch information