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}"); }