pub fn encrypt(
addr: &AddressBytes,
key: &[u8; 16],
info: u8,
counter: u32,
objects: &[u8],
) -> Vec<u8> ⓘExpand description
Encrypts a BTHome v2 payload (the objects, without the device info byte) into service data, as a device would: for tests and for a gateway that broadcasts BTHome itself.