EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
handles EnOcean Security Telegrams More...
#include <eoSecurity.h>
Public Member Functions | |
eoReturn | ParseTeachIn (eoMessage &msgTi, eoDevice &dev) |
eoReturn | CreateTeachIn (eoMessage &msgTi, eoDevice &dev) |
eoReturn | Decrypt (const eoMessage &msgSec, eoMessage &msgNonSec, eoDevice &dev) |
eoReturn | Encrypt (const eoMessage &msgNonSec, eoMessage &msgSec, eoDevice &dev) |
eoReturn | Encrypt (const eoMaintenanceMessage &msgNonSec, eoMaintenanceMessage &msgSec, eoDevice &dev) |
eoReturn | Decrypt (const eoMaintenanceMessage &msgSec, eoMaintenanceMessage &msgNonSec, eoDevice &dev) |
SEC_RESULT | GetLastError () |
Static Public Member Functions | |
static void | SetKey (uint8_t key[16], eoSecureInfo &info) |
handles EnOcean Security Telegrams
Allows you to receive and sent secured EnOcean Telegrams. After parsing a secured TeachIN telegram with the ParseTeachIn function the security Information get stored in the eoDevice::secIn field. Using the eoDevice::secIn field Secured Telegrams can be decrypted. Outgoing messages can also be encrypted using the stored Information in the eoDevice::secOut field.
Create the TeachIN Message
msgTi | Secure TeachIn message to create |
dev | device to store eoSecureInfo to |
Decrypt data
msgSec | Message containing Secured data |
msgNonSec | Message containing decrypted data after a success |
dev | eoDevice containing eoSecureInfo |
eoReturn eoSecurity::Decrypt | ( | const eoMaintenanceMessage & | msgSec, |
eoMaintenanceMessage & | msgNonSec, | ||
eoDevice & | dev | ||
) |
Decrypts the maintenance Message, using the MaintenanceKey provided by the device
msgSec | Message containing encrypted data |
msgNonSec | Message containing the decrypted Message after a success |
dev | eoDevice containing eoSecureInfo |
Encrypt data
msgSec | Message containing encrypted data after a success |
msgNonSec | Message not decrypted Message to encrypt. |
dev | eoDevice containing eoSecureInfo |
eoReturn eoSecurity::Encrypt | ( | const eoMaintenanceMessage & | msgNonSec, |
eoMaintenanceMessage & | msgSec, | ||
eoDevice & | dev | ||
) |
Encrypts the maintenance Message, using the MaintenanceKey provided by the device
msgSec | Message containing encrypted data after a success |
msgNonSec | Message not decrypted Message to encrypt. |
dev | eoDevice containing eoSecureInfo |
SEC_RESULT eoSecurity::GetLastError | ( | ) |
Parse the TeachIN Message
msgTi | TeachIn message to parse |
dev | device to store eoSecureInfo to |
|
static |
Set the key info for eoSecureInfo, generates subkeys as needed
key | aes key to set |
info | the eoSecureInfo to update |