Struct secure_session::session::ChaCha20Poly1305SessionManager
[−]
[src]
pub struct ChaCha20Poly1305SessionManager<V: Serialize + DeserializeOwned> { /* fields omitted */ }
Uses the ChaCha20Poly1305 AEAD to provide signed, encrypted sessions.
Methods
impl<V: Serialize + DeserializeOwned> ChaCha20Poly1305SessionManager<V>[src]
fn from_key(aead_key: [u8; 32]) -> Self[src]
Using a saved key, generate a ChaCha20Poly1305SessionManager.
Trait Implementations
impl<V: Serialize + DeserializeOwned + Send + Sync> SessionManager<V> for ChaCha20Poly1305SessionManager<V>[src]
fn deserialize(&self, bytes: &[u8]) -> Result<Session<V>, SessionError>[src]
Given a slice of bytes perform the following options to convert it into a Session: Read more
fn serialize(&self, session: &Session<V>) -> Result<Vec<u8>, SessionError>[src]
Given a session perform the following options to convert a Session into bytes: Read more
fn is_encrypted(&self) -> bool[src]
Whether or not the sessions are encrypted: true