Trait kernel::hil::symmetric_encryption::CCMClient   
                   
                       [−]
                   
               [src]
pub trait CCMClient {
    fn crypt_done(
        &self, 
        buf: &'static mut [u8], 
        res: ReturnCode, 
        tag_is_valid: bool
    );
}
            Required Methods
fn crypt_done(
    &self, 
    buf: &'static mut [u8], 
    res: ReturnCode, 
    tag_is_valid: bool
)
&self,
buf: &'static mut [u8],
res: ReturnCode,
tag_is_valid: bool
)
res is SUCCESS if the encryption/decryption process succeeded. This
does not mean that the message has been verified in the case of
decryption.
If we are encrypting: tag_is_valid is true iff res is SUCCESS.
If we are decrypting: tag_is_valid is true iff res is SUCCESS and the
message authentication tag is valid.