Function lrwn::encrypt_frm_payload

source ·
pub fn encrypt_frm_payload(
    key: &AES128Key,
    uplink: bool,
    devaddr: &DevAddr,
    f_cnt: u32,
    data: &[u8]
) -> Result<Vec<u8>>
Expand description

Encrypt (and decrypt) the frm_payload. Note that the same function is used for encryption and decryption.