Skip to main content

run_key_command

Function run_key_command 

Source
pub fn run_key_command(
    cmd: &str,
    timeout: Duration,
) -> Result<Zeroizing<[u8; 32]>>
Expand description

Run cmd (split as --embed-cmd is, no shell) and read a key from the first line of its output (the keys note, section 6): stdin closed, stderr passed through, stdout capped at 4 KiB, its exit status checked, and killed after timeout.