From d7ee6667f9838513ce7c95aa5e8763233622b109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 20 Apr 2024 18:24:30 +0200 Subject: [PATCH] Update the benchmarks --- benches/decryption.rs | 4 ++-- benches/encryption.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benches/decryption.rs b/benches/decryption.rs index 72609ca..203f1a7 100644 --- a/benches/decryption.rs +++ b/benches/decryption.rs @@ -1,6 +1,6 @@ mod data; -use coffio::{CipherBox, DataContext, InputKeyMaterialList, KeyContext}; +use coffio::{Coffio, DataContext, InputKeyMaterialList, KeyContext}; use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; use data::{ Data, AES128GCM_SHA256_INPUTS, DATA_CTX, IKML_AES128GCM_SHA256, IKML_XCHACHA20POLY1305_BLAKE3, @@ -23,7 +23,7 @@ fn decrypt_coffio(ikml: &str, input: &str) { let ikm = InputKeyMaterialList::import(ikml).unwrap(); let key_ctx = KeyContext::from(KEY_CTX); let data_ctx = DataContext::from(DATA_CTX); - let cb = CipherBox::new(&ikm); + let cb = Coffio::new(&ikm); if let Err(e) = cb.decrypt(&key_ctx, &data_ctx, input) { assert!(false, "{e}"); } diff --git a/benches/encryption.rs b/benches/encryption.rs index 416fefb..ea9d0e0 100644 --- a/benches/encryption.rs +++ b/benches/encryption.rs @@ -1,6 +1,6 @@ mod data; -use coffio::{CipherBox, DataContext, InputKeyMaterialList, KeyContext}; +use coffio::{Coffio, DataContext, InputKeyMaterialList, KeyContext}; use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; use data::{Data, DATA_CTX, IKMLS, KEY_CTX, MEASUREMENT_TIME, PLAIN_INPUTS}; use std::time::Duration; @@ -9,7 +9,7 @@ fn encrypt_coffio(ikml: &str, input: &str) { let ikm = InputKeyMaterialList::import(ikml).unwrap(); let key_ctx = KeyContext::from(KEY_CTX); let data_ctx = DataContext::from(DATA_CTX); - let cb = CipherBox::new(&ikm); + let cb = Coffio::new(&ikm); if let Err(e) = cb.encrypt(&key_ctx, &data_ctx, input) { assert!(false, "{e}"); }