feat: v0.2.2, auto find PIV slot id

This commit is contained in:
2023-10-09 00:42:30 +08:00
parent 196d500c51
commit 6833a1a7d3
5 changed files with 48 additions and 12 deletions

View File

@@ -133,3 +133,11 @@ pub fn zeroize(object: impl Zeroize) {
let mut object = object;
object.zeroize();
}
pub fn read_line(ln: &str) {
print!("{}", ln);
io::stdout().flush().ok();
let mut buff = String::new();
let _ = io::stdin().read_line(&mut buff).expect("Read line from stdin");
}