60 if (buf ==
nullptr || system_key ==
nullptr || len <
AES_KEY_SIZE)
static constexpr uint8_t CMD_KEY_TRANSFER
Send encrypted system key to device.
static constexpr uint8_t CMD_ONEWAY_ADD_CONTROLLER
1W "add controller": a 1W device broadcasts this while its key-copy gesture is active,...
bool contains_key_material(const uint8_t *buf, size_t len, const uint8_t *system_key)
Whether a buffer contains the system key as a contiguous run of bytes.
static constexpr uint8_t CMD_CHALLENGE_REQ
6-byte random challenge.
static constexpr uint8_t AES_KEY_SIZE
AES-128 key size.
static constexpr uint8_t CMD_CHALLENGE_RESP
HMAC proof answering a 0x3C.
bool command_carries_key_material(uint8_t cmd)
Whether a frame command's payload carries key material that must never be logged or reported verbatim...
IO-Homecontrol command IDs, result codes and protocol enumerations.
Fundamental IO-Homecontrol frame and crypto size constants.