FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IVncPasswordChallenge

    trait · ferroui-headless-vnc · v0.5.0

    trait IVncPasswordChallenge: Send + Sync
    

    A common interface for types which implement the VNC password challenge protocol.

    View source

    Members

    generate_challenge

    fn generate_challenge(self: &Self) -> Vec<u8>
    

    Generates a 16-byte challenge.

    Source

    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).

    Source

    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).

    Source

    Trait implementations

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.