save work

This commit is contained in:
Nanosonde 2020-06-12 13:58:20 +02:00
parent f2e219a2bd
commit 79d9586940
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,8 @@
DeviceObject::DeviceObject() DeviceObject::DeviceObject()
{ {
// Default to KNXA (0xFA) // Default to KNXA (0xFA)
// Note: ETS does not accept a SN 00FA00000000 in data secure mode.
// ETS says that 00FA00000000 looks "suspicious" in the log file.
uint8_t serialNumber[] = {0x00, 0xFA, 0x01, 0x02, 0x03, 0x04}; uint8_t serialNumber[] = {0x00, 0xFA, 0x01, 0x02, 0x03, 0x04};
uint8_t hardwareType[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; uint8_t hardwareType[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@ -8,8 +8,12 @@
#include "bau.h" #include "bau.h"
#include "string.h" #include "string.h"
#include "bits.h" #include "bits.h"
// Select what cipher modes to include. We need AES128-CBC and AES128-CTR modes.
#define CBC 1
#define CTR 1
#define ECB 0
#include "aes.hpp" #include "aes.hpp"
#include <stdio.h>
const uint8_t SecureDataPdu = 0; const uint8_t SecureDataPdu = 0;
const uint8_t SecureSyncRequest = 2; const uint8_t SecureSyncRequest = 2;