mirror of
https://github.com/trussed-dev/iso7816.git
synced 2026-06-20 04:16:14 -07:00
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.
This commit is contained in:
+5
-1
@@ -3,7 +3,7 @@ pub mod instruction;
|
||||
|
||||
pub type Data = heapless_bytes::Bytes<crate::MAX_COMMAND_DATA>;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Command {
|
||||
class: class::Class,
|
||||
instruction: instruction::Instruction,
|
||||
@@ -37,6 +37,10 @@ impl Command {
|
||||
&self.data
|
||||
}
|
||||
|
||||
pub fn data_mut(&mut self) -> &mut Data {
|
||||
&mut self.data
|
||||
}
|
||||
|
||||
pub fn expected(&self) -> usize {
|
||||
self.le
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user