mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-07 18:20:53 +02:00
Rust wrapper: add comment to MlKem about not implementing Send/Sync
Fixes F-1072.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user