14#define KNX_KEY_LENGTH 16
17void knx_ccm_calc_cbc_mac( uint8_t p_mac[ KNX_KEY_LENGTH ],
const uint8_t key[ KNX_KEY_LENGTH ],
18 const uint8_t* a_bytes,
int a_length,
const uint8_t* p_bytes,
int p_length,
19 const uint8_t b_0[ KNX_KEY_LENGTH ] );
22void knxip_ccm_calc_cbc_mac( uint8_t p_mac[ KNX_KEY_LENGTH ],
const uint8_t key[ KNX_KEY_LENGTH ],
23 const uint8_t* a_bytes,
int a_length,
const uint8_t* p_bytes,
int p_length,
24 const uint8_t* nonce, uint8_t nonce_length );
27uint8_t* knx_ccm_encrypt( uint8_t* p_result,
const uint8_t key[ KNX_KEY_LENGTH ],
const uint8_t* p_bytes,
int p_length,
28 const uint8_t* mac, uint8_t mac_length,
const uint8_t ctr_0[ KNX_KEY_LENGTH ], uint8_t s0_bytes_used_for_mac);
31uint8_t* knxip_ccm_encrypt( uint8_t* p_result,
const uint8_t key[ KNX_KEY_LENGTH ],
const uint8_t* p_bytes,
int p_length,
32 const uint8_t mac[ KNX_KEY_LENGTH ],
const uint8_t* nonce, uint8_t nonce_length );
35uint8_t* knxip_ccm_decrypt( uint8_t* p_result,
const uint8_t key[ KNX_KEY_LENGTH ],
const uint8_t* crypt,
int crypt_length,
36 const uint8_t* nonce, uint8_t nonce_length );
44 uint8_t key[ KNX_KEY_LENGTH ];
51 uint8_t key[ KNX_KEY_LENGTH ];
65 uint8_t key[ KNX_KEY_LENGTH ];
82void read_knx_keyring_xml_file(
const char* key_file,
const char* password,
const char* key_info_file );
Definition packet-knxip_decrypt.h:48
Definition packet-knxip_decrypt.h:55
Definition packet-knxip_decrypt.h:62
Definition packet-knxip_decrypt.h:69
Definition packet-knxip_decrypt.h:41