-extern int CalculateMAC(mf4Session *session, uint8_t *data, int datalen, uint8_t *mac, bool verbose);
+typedef enum {
+ mtypReadCmd,
+ mtypReadResp,
+ mtypWriteCmd,
+ mtypWriteResp,
+} MACType_t;
+
+typedef struct {
+ uint8_t cond;
+ char *description;
+} AccessConditions_t;
+
+extern int CalculateMAC(mf4Session *session, MACType_t mtype, uint8_t blockNum, uint8_t blockCount, uint8_t *data, int datalen, uint8_t *mac, bool verbose);