26 Commits
Author SHA1 Message Date
Nicolas Stalder 9d6e92fe20 Move to heapless 7 = const generics 2021-06-10 22:31:41 +02:00
Nicolas Stalder f12c2d59ce Define AID 2021-06-10 18:16:31 +02:00
Robin KrahlandNicolas Stalder e2dae292be Rename CanThisReallyOccur to InvalidSliceLength
The CanThisReallyOccur error variant can really occur, namely if the
slice length is invalid, i. e. either the encoded data length Lc is
wrong, or the length values Lc and Le are not encoded properly.
Therefore, this patch renames the CanThisReallyOccur variant to a more
informative name.
2021-05-25 22:23:24 +02:00
Nicolas Stalder d09d3cdaeb TryFrom(sw) for Status 2021-05-14 02:52:23 +02:00
Nicolas Stalder 02250ae700 Set licenses 2021-04-25 17:33:37 +02:00
Nicolas StalderandNicolas Stalder 8305f56626 The great renaming
- name things by what they are
- try and make then names human readable
2021-04-25 16:31:25 +02:00
Conor PatrickandNicolas Stalder d66a4a5faa update everything else for new reply handling 2021-04-25 16:31:25 +02:00
Conor PatrickandNicolas Stalder d98a674123 remove functions that return large buffers, remove defer+poll for applet trait 2021-04-25 16:31:25 +02:00
Conor PatrickandNicolas Stalder 15fc0c7780 Move size definitions for large buffers to apdu-dispatch 2021-04-25 16:31:25 +02:00
Conor PatrickandNicolas Stalder f280baad7a be more lenient on interpreting chaining 2021-04-13 23:14:07 +02:00
Nicolas Stalder 1cf1d44364 Version bumparoo 2021-02-27 02:05:39 +01:00
Nicolas StalderandNicolas Stalder 3e7c76da3c Adjust to Trussed improvements 2021-02-26 18:06:44 +01:00
Nicolas StalderandNicolas Stalder ef689af199 Further cleanup; give up on heapless PR, external interchange/trussed 2021-02-26 18:06:44 +01:00
Nicolas StalderandNicolas Stalder d374094f61 Purge ufmt; add build-pc to CI 2021-01-06 23:36:01 +01:00
Conor PatrickandNicolas Stalder e8c6b5614c rework apdu-dispatch to significantly reduce stack overhead 2020-10-09 16:20:12 +02:00
Conor PatrickandNicolas Stalder 1dca0fa36c Make apdu-dispatch build standalone and fix tests 2020-10-09 16:20:12 +02:00
Conor PatrickandNicolas Stalder 72bb691158 add u2f_v2 2020-09-11 00:28:01 +02:00
Conor PatrickandNicolas Stalder e78c6f49e8 substitute all uses of semihosting and funnel with logging crate 2020-08-23 14:36:29 +02:00
Nicolas StalderandNicolas Stalder 63470f239c Simplify adpu-manager logic, rename to apdu-dispatch 2020-07-16 23:29:07 +02:00
Conor PatrickandNicolas Stalder 7bc2131edb use iso7816 component 2020-06-28 00:51:07 +02:00
Nicolas Stalder 2e584f0649 Get rid of heapless-bytes: use hopefully soon to be upstreamed heapless additions 2020-05-22 01:51:09 +02:00
Nicolas Stalder 6a1bbf831f Woohoo! Filo's agent setup routine goes through!
% yubikey-agent -setup --really-delete-all-piv-keys
Resetting YubiKey PIV applet...
🔐 The PIN is up to 8 numbers, letters, or symbols.
👆 You'll need it once per session.
 The YubiKey gets locked if the wrong PIN is entered 3 times.

Choose a new PIN:
Repeat PIN:
🧪 Reticulating splines...

 Done! This YubiKey is secured and ready to go.🤏 When the YubiKey blinks, touch it to authorize the login.🔑 Here's your new shiny SSH public key:ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNAn1mgsUfJ0eA+cbvPcJBilynMKI9lIlpeZWMAHlZGe3dK62CxD5z7RQ/KdnXxQqQOP/qt1xdDOJDn3NjQrtRU=

Next steps: ensure yubikey-agent is running via launchd/systemd/...,set the SSH_AUTH_SOCK environment variable, and test with "ssh-add -L"

💭 Remember: everything breaks, have a backup plan for when this YubiKey does.
2020-05-16 14:48:23 +02:00
Nicolas Stalder eb29b38041 Initial attempt to patch in multi-USB packet CCID packets 2020-05-16 14:18:33 +02:00
Nicolas Stalder 54424a56b7 PIV is slowly growing. Many intermediate bugs ;) 2020-05-16 00:29:25 +02:00
Nicolas Stalder 4d369e0d4c Progress: GetData/Verify works, next up: GeneralAuthenticate 2020-05-15 00:19:55 +02:00