pub fn encode_secured_submessage(
plugin: &dyn CryptographicPlugin,
local: CryptoHandle,
remote_list: &[CryptoHandle],
plaintext: &[u8],
) -> Result<Vec<u8>, SecurityRtpsError>Expand description
Encodes a plain submessage blob as a secured submessage sequence (SEC_PREFIX + SEC_BODY + SEC_POSTFIX).
The crypto plugin produces the actual ciphertext; this module only takes care of the wire framing.
§Errors
A passed-through crypto error or a length overflow (u16).