pub fn encode_aead_batch(
shared_secret: &[u8],
messages: &[(&[u8], &[u8])],
pool: Option<&EntropyPool>,
) -> Result<Vec<KkAeadPacket>>Expand description
Encrypt N independent messages in parallel using Rayon.
Each message gets its own entropy snapshot (drawn from pool when
provided, otherwise gathered synchronously). Results are returned
in the same order as the input slice.
This is the real server-workload API: thousands of concurrent messages processed across all CPU cores.