better WASM support

This commit is contained in:
satvrn 2023-08-02 14:11:26 +00:00 committed by GitHub
commit 84b358c934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 7 deletions

View file

@ -29,7 +29,7 @@ fn criterion_benchmark_2(c: &mut Criterion) {
c.bench_function("Ratchet Enc Skip", |b| b.iter(|| ratchet_enc_skip()));
}
fn ratchet_encryt_decrypt_four() {
fn ratchet_encrypt_decrypt_four() {
let sk = [1; 32];
let data = include_bytes!("../src/dh.rs").to_vec();
let (mut bob_ratchet, public_key) = Ratchet::init_bob(sk);
@ -42,7 +42,7 @@ fn ratchet_encryt_decrypt_four() {
fn criterion_benchmark_3(c: &mut Criterion) {
c.bench_function("Ratchet Dec Four", |b| {
b.iter(|| ratchet_encryt_decrypt_four())
b.iter(|| ratchet_encrypt_decrypt_four())
});
}