Skip to main content

protect

Function protect 

Source
pub fn protect(
    ctx: &SecurityContext,
    ciphered_tag: u8,
    plaintext: &[u8],
) -> Result<Vec<u8>, CipherError>
Expand description

Protects plaintext (a plain xDLMS APDU) and returns the ciphered APDU with the given ciphered_tag (see glo / ded).