IVncPasswordChallenge
trait · ferroui-headless-vnc · v0.5.0
trait IVncPasswordChallenge: Send + Sync
A common interface for types which implement the VNC password challenge protocol.
Members
generate_challenge
fn generate_challenge(self: &Self) -> Vec<u8>
Generates a 16-byte challenge.
get_challenge_response_chars
fn get_challenge_response_chars(self: &Self, challenge: &[u8], password: &[char], response: &mut [u8])
Calculates a response for a password challenge, using the
characters of a password.
Panics
When the challenge or the response is not 16 bytes long
(ArgumentOutOfRangeException).
get_challenge_response
fn get_challenge_response(self: &Self, challenge: &[u8], password: &[u8], response: &mut [u8])
Calculates a response for a password challenge, using the bytes
of a password.
Panics
When the challenge or the response is not 16 bytes long
(ArgumentOutOfRangeException).
Trait implementations
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.