Added tests and fixed some issues.

I also added documentation.
This commit is contained in:
Hannes 2021-05-14 18:11:48 +02:00
commit 76d7312a9a
6 changed files with 47 additions and 37 deletions

View file

@ -112,7 +112,7 @@ fn ratchet_ench_panic_bob() {
let sk = [1; 32];
let shared_hka = [2; 32];
let shared_nhkb = [3; 32];
let (mut bob_ratchet, public_key) = RatchetEncHeader::init_bob(sk,
let (mut bob_ratchet, _) = RatchetEncHeader::init_bob(sk,
shared_hka,
shared_nhkb);
let data = include_bytes!("../src/header.rs").to_vec();