coffio/benches/data.rs

60 lines
2 KiB
Rust
Raw Permalink Normal View History

2024-03-23 19:23:14 +01:00
pub const MEASUREMENT_TIME: u64 = 30;
2024-03-24 09:47:36 +01:00
pub const KEY_CTX: &[&str] = &["database_name", "table_name", "column_name"];
pub const DATA_CTX: &[&str] = &[
2024-03-23 19:23:14 +01:00
"b3b21eb1-70d7-4dc6-9a2a-439e17d8491d",
"8dfa06bc-de19-455a-8e43-2f5d8019442f",
];
// created_at: Sunday 21 February 2021 10:21:42
// expire_at: Thursday 10 February 2180 10:21:42
// is_revoked: false
2024-03-24 14:38:03 +01:00
pub const IKML_AES128GCM_SHA256: &str =
2024-06-22 10:46:00 +02:00
"ikml-v1:AQAAAA:AQAAAAIAAAAAsPHG8Eyb8uZBAUUyUuxIRdQ5mIO1v1QDBhWOzbCRvzY0MmAAAAAANsk0iwEAAAAA";
2024-03-24 14:38:03 +01:00
// created_at: Sunday 21 February 2021 10:21:42
// expire_at: Thursday 10 February 2180 10:21:42
// is_revoked: false
2024-03-23 19:23:14 +01:00
pub const IKML_XCHACHA20POLY1305_BLAKE3: &str =
2024-06-22 10:46:00 +02:00
"ikml-v1:AQAAAA:AwAAAAEAAAAMoNIW9gIGkzegUDEsU3N1Rf_Zz0OMuylUSiQjUzLXqzY0MmAAAAAANsk0iwEAAAAA";
2024-03-24 14:38:03 +01:00
pub const IKMLS: &[(&str, &str)] = &[
("Aes128GcmWithSha256", IKML_AES128GCM_SHA256),
("XChaCha20Poly1305WithBlake3", IKML_XCHACHA20POLY1305_BLAKE3),
];
2024-03-23 19:23:14 +01:00
pub const PLAIN_INPUTS: &[(&str, &str)] = &[
("01 - 12 B", include_str!("data/plain_01_xs.txt")),
("02 - 60 B", include_str!("data/plain_02_s.txt")),
("03 - 500 B", include_str!("data/plain_03_m.txt")),
("04 - 3 KB", include_str!("data/plain_04_l.txt")),
("05 - 1 MB", include_str!("data/plain_05_xl.txt")),
];
2024-06-22 12:47:10 +02:00
pub const ENCRYPTED_INPUTS: &[(&str, &str, &str)] = &[
2024-03-23 19:23:14 +01:00
(
"01 - 12 B",
2024-06-22 12:47:10 +02:00
include_str!("data/aes128gcm-sha256_01_xs.txt"),
2024-03-23 19:23:14 +01:00
include_str!("data/xchacha20poly1305-blake3_01_xs.txt"),
),
(
"02 - 60 B",
2024-06-22 12:47:10 +02:00
include_str!("data/aes128gcm-sha256_02_s.txt"),
2024-03-23 19:23:14 +01:00
include_str!("data/xchacha20poly1305-blake3_02_s.txt"),
),
(
"03 - 500 B",
2024-06-22 12:47:10 +02:00
include_str!("data/aes128gcm-sha256_03_m.txt"),
2024-03-23 19:23:14 +01:00
include_str!("data/xchacha20poly1305-blake3_03_m.txt"),
),
(
"04 - 3 KB",
2024-06-22 12:47:10 +02:00
include_str!("data/aes128gcm-sha256_04_l.txt"),
2024-03-23 19:23:14 +01:00
include_str!("data/xchacha20poly1305-blake3_04_l.txt"),
),
(
"05 - 1 MB",
2024-06-22 12:47:10 +02:00
include_str!("data/aes128gcm-sha256_05_xl.txt"),
2024-03-23 19:23:14 +01:00
include_str!("data/xchacha20poly1305-blake3_05_xl.txt"),
),
];
pub struct Data<'a> {
pub ikml: &'a str,
pub input: &'a str,
}