Skip to main content

HostKeyProvider

Trait HostKeyProvider 

Source
pub trait HostKeyProvider {
    // Required methods
    fn host_public_key(&self) -> &[u8];
    fn sign_exchange_hash(
        &mut self,
        exchange_hash: &[u8],
        out: &mut [u8],
    ) -> Result<usize>;
}

Required Methods§

Source

fn host_public_key(&self) -> &[u8]

Implements host public key.

Source

fn sign_exchange_hash( &mut self, exchange_hash: &[u8], out: &mut [u8], ) -> Result<usize>

Implements sign exchange hash.

Implementors§