Mudr-209 Info

/* 2. Assemble record -------------------------------------------------------*/ static void assemble_record(const uint8_t *payload, uint32_t len)

flash_append(record_buf, sizeof(mudr209_hdr_t)+hdr->payload_sz); MUDR-209

/* 3. Encrypt & MAC ----------------------------------------------------------*/ static void protect_record(void) uint32_t len) flash_append(record_buf

/* AES‑GCM‑256 encryption + authentication tag */ aes_gcm_encrypt(SE_KEY_LOG, record_buf, sizeof(mudr209_hdr_t)+hdr->payload_sz, record_buf); // in‑place encrypt // in‑place encrypt