
/* ERROR CODES TO BE USED IN RIOT */

#define RIOTSTATUS			int
#define RIOTSUCCESS			1
#define RIOTFAILURE			0
#define RIOTFILENOTFOUND	-1
#define	RIOTINPUTERROR		-2
#define RIOTOUTPUTERROR		-3
#define RIOTINVALIDSTATE	-4





/* CONSTANTS TO BE USED IN RIOT */
/* ALL NUMBERS ARE IN BYTES */

#define SHA256_DGST_SIZE 	32
#define UDS_SIZE			8
#define UDS_DGST_SIZE		SHA256_DGST_SIZE
#define FW_DGST_SIZE		SHA256_DGST_SIZE
#define CDI_DGST_SIZE		SHA256_DGST_SIZE
#define CDI_KEY_SIZE		32
#define HKDF_ALG			MBEDTLS_MD_SHA256
#define ECC_CURVE			MBEDTLS_ECP_DP_SECP256R1	//mbedtls_ecp_group_id




/* CONFIGURATIONS */

#define USE_ECC			1