Enum eidolon::EidolonState
source · pub enum EidolonState<S: EcSig> {
Uninit(Cert<S>, Vec<S::Pk>, bool),
Initiator(Cert<S>, Vec<S::Pk>, Vec<u8>),
ResponderAwaits(Cert<S>, Vec<S::Pk>, Vec<u8>),
CredentialsSent(Vec<S::Pk>, Vec<u8>),
Complete(Cert<S>),
}
Variants§
Uninit(Cert<S>, Vec<S::Pk>, bool)
Initiator(Cert<S>, Vec<S::Pk>, Vec<u8>)
ResponderAwaits(Cert<S>, Vec<S::Pk>, Vec<u8>)
CredentialsSent(Vec<S::Pk>, Vec<u8>)
Complete(Cert<S>)
Implementations§
source§impl<S: EcSig> EidolonState<S>
impl<S: EcSig> EidolonState<S>
pub fn initiator(creds: Cert<S>, allowed_ids: Vec<S::Pk>) -> Self
pub fn responder(creds: Cert<S>, allowed_ids: Vec<S::Pk>) -> Self
pub fn init(&mut self, nonce: impl AsRef<[u8]>)
pub fn is_init(&self) -> bool
pub fn advance<P: EcSign>( &mut self, input: &[u8], signer: &P ) -> Result<Vec<u8>, Error<S::Pk>>
pub fn is_complete(&self) -> bool
pub fn remote_cert(&self) -> Option<&Cert<S>>
pub fn next_read_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for EidolonState<S>
impl<S> RefUnwindSafe for EidolonState<S>
impl<S> Send for EidolonState<S>
impl<S> Sync for EidolonState<S>
impl<S> Unpin for EidolonState<S>
impl<S> UnwindSafe for EidolonState<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more