Skip to main content

read_computer_key

Function read_computer_key 

Source
pub fn read_computer_key(
    key_file: &Path,
) -> Result<ComputerKey, ComputerKeyError>
Expand description

Read the key from key_file.

The file must be a regular file, reached without following a symbolic link, owned by this process’s user, with no group or other permission bits, holding one nonempty token of at most MAX_COMPUTER_KEY_BYTES visible ASCII bytes. One trailing newline (\n or \r\n) is ignored.