From 72a8f3f670c9d9e346e9430308232306eee5db7a Mon Sep 17 00:00:00 2001 From: Norbert Fabritius Date: Tue, 6 Feb 2024 13:36:54 +0100 Subject: [PATCH] Increase MAX_REQUEST_TYPES for AesWorker --- heimlig/src/hsm/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heimlig/src/hsm/core.rs b/heimlig/src/hsm/core.rs index aed80b2..c1fd1b5 100644 --- a/heimlig/src/hsm/core.rs +++ b/heimlig/src/hsm/core.rs @@ -89,7 +89,7 @@ pub const MAX_WORKERS: usize = 16; // TODO: Can be made configurable once `core::mem::variant_count` is stable // https://github.com/rust-lang/rust/issues/73662 /// Maximum number of different request types handles by a worker -const MAX_REQUEST_TYPES: usize = 8; +const MAX_REQUEST_TYPES: usize = 16; /// HSM core that waits for [Request]s from clients and send [Response]s once they are ready. pub struct Core<