DIMA/trial1/layer2.c
2020-05-19 15:59:18 +02:00

28 lines
451 B
C

#include "layer2.h"
void startProtocol()
{
//step 1 : Derive Device ID
uint8_t* UDS_ID = calloc(1,sizeof(uint8_t)*SHA256_dig_t);
readUDS(UDS_ID);
//step 2 : Derive Firmware ID
uint8_t* FW_ID = calloc(1,sizeof(uint8_t)*SHA256_dig_t);
readFWID(FW_ID);
// //setp 3 : Derive Composite Device ID
// uint8_t* CD_ID = calloc(1,sizeof(uint8_t)*SHA256_dig_t);
// calcCDID(CD_ID);
//End block
free(UDS_ID);
free(FW_ID);
// free(CD_ID);
}