pub fn protect( ctx: &SecurityContext, ciphered_tag: u8, plaintext: &[u8], ) -> Result<Vec<u8>, CipherError>
Protects plaintext (a plain xDLMS APDU) and returns the ciphered APDU with the given ciphered_tag (see glo / ded).
plaintext
ciphered_tag
glo
ded