Jack Grigg
399f0b4c11
Rename crate::yubikey to crate::key
...
So that it doesn't conflict with the renamed `yubikey` crate.
2021-10-18 21:07:23 +01:00
Jack Grigg
f5f140d172
Fix various clippy lints
2021-08-20 16:22:22 +01:00
Jack Grigg
2c90195f99
Check PIN policy before requesting PIN
...
Closes str4d/age-plugin-yubikey#34 .
2021-08-20 15:11:39 +01:00
Jack Grigg
64b0ab4e16
Add --list comments to identity output
...
This improves the output of --generate and --identity, as well as the
interactive TUI.
Closes str4d/age-plugin-yubikey#24 .
2021-04-25 12:10:35 +12:00
Jack Grigg
63c8d6c303
Rename PLUGIN_NAME to BINARY_NAME
2021-04-12 22:31:46 +12:00
Jack Grigg
4ea8506e49
Extract slot UI indexing into util functions
2021-03-29 21:09:02 +13:00
Jack Grigg
850f96cd2c
Implement --generate command
...
Includes logic to help users manage their keys:
- If the key is using a default PIN, we require the user to change it.
- We set the PUK equal to the PIN so the user doesn't need to remember
them separately.
- We migrate the default management key to a new PIN-protected key.
2021-03-29 19:02:32 +13:00
Jack Grigg
7a527b2be6
Implement --identity command
2021-01-12 02:29:57 +00:00
Jack Grigg
babe64da42
Implement --list and --list-all commands
...
Requires a MSRV of 1.44 due to the transitive dependency on bitvec 0.19.
2021-01-12 02:29:30 +00:00