Struct secret_handshake::crypto::Server [] [src]

#[repr(C)]
pub struct Server<'a> { /* fields omitted */ }

The struct used in the C code to perform the server side of a handshake.

Methods

impl<'a> Server<'a>
[src]

[src]

Creates and initializes a new Server.

[src]

Verifies the given client challenge and updates the server state.

[src]

Writes the server challenge into challenge and updates the server state.

[src]

Verifies the given client authentication and updates the server state.

[src]

Writes the server acknowledgement into ack and updates the server state.

[src]

Computes the outcome of the handshake and writes it into outcome.

[src]

Zeros out all sensitive data in the Server.

[src]

Returns the longterm public key of the client. This will return uninitialized memory if called before the server verified msg3.

Trait Implementations

impl<'a> Drop for Server<'a>
[src]

Zero out all sensitive data when going out of scope.

[src]

Executes the destructor for this type. Read more