diff --git a/wrapper/rust/wolfssl-wolfcrypt/src/mlkem.rs b/wrapper/rust/wolfssl-wolfcrypt/src/mlkem.rs index a7d903be33..0e2080c3b7 100644 --- a/wrapper/rust/wolfssl-wolfcrypt/src/mlkem.rs +++ b/wrapper/rust/wolfssl-wolfcrypt/src/mlkem.rs @@ -73,6 +73,10 @@ use zeroize::Zeroize; /// /// An instance is created with [`MlKem::generate()`], /// [`MlKem::generate_with_random()`], or [`MlKem::new()`]. +/// +/// This struct does not implement Send or Sync because it is not safe in the +/// general case to access the underlying C API from multiple threads +/// concurrently. pub struct MlKem { ws_key: *mut sys::MlKemKey, }