pub fn process_security(
sa: &mut SecurityAssociation,
crypto: &impl CryptoProvider,
frame: &mut [u8],
header_end: usize,
data_start: usize,
data_end: usize,
) -> Result<(), Error>Expand description
Process security on a received frame (receiving side).
Verifies authentication, checks anti-replay, and decrypts.
For AEAD (AES-GCM), tag verification and decryption are
combined in a single decrypt call.