Module sas

Module sas 

Source
Expand description

This module wraps around all functions following the pattern olm_sas_*.

§Example

let mut alice = OlmSas::new();
let mut bob = OlmSas::new();

alice.set_their_public_key(bob.public_key()).unwrap();
bob.set_their_public_key(alice.public_key()).unwrap();

assert_eq!(
    alice.generate_bytes("", 5).unwrap(),
    bob.generate_bytes("", 5).unwrap()
);

Structs§

OlmSas