[][src]Struct sardine::srd::Srd

pub struct Srd { /* fields omitted */ }

Methods

impl Srd[src]

pub fn new(is_server: bool) -> Srd[src]

pub fn authenticate(
    &mut self,
    input_data: &[u8],
    output_data: &mut Vec<u8>
) -> Result<bool>
[src]

pub fn get_keys(&self) -> ([u8; 32], [u8; 32])[src]

pub fn get_delegation_key(&self) -> Vec<u8>[src]

pub fn get_integrity_key(&self) -> Vec<u8>[src]

pub fn set_cert_data(&mut self, buffer: Vec<u8>) -> Result<()>[src]

pub fn get_output_data(&self) -> &Option<Vec<u8>>[src]

pub fn set_output_data(&mut self, output_data: Vec<u8>)[src]

impl Srd[src]

pub fn set_raw_blob(&mut self, blob: SrdBlob)[src]

impl Srd[src]

pub fn set_ciphers(&mut self, ciphers: Vec<Cipher>) -> Result<()>[src]

pub fn get_blob<T: Blob>(&self) -> Result<Option<T>>[src]

pub fn set_blob<T: Blob>(&mut self, blob: T) -> Result<()>[src]

pub fn get_raw_blob(&self) -> Option<SrdBlob>[src]

Auto Trait Implementations

impl Send for Srd

impl Sync for Srd

impl Unpin for Srd

impl UnwindSafe for Srd

impl RefUnwindSafe for Srd

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,