-int mfTraceInit(uint8_t *tuid, uint8_t *atqa, uint8_t sak);\r
-int mfTraceDecode(uint8_t *data_src, int len);\r
+\r
+int mfTraceInit(uint8_t *tuid, uint8_t uidlen, uint8_t *atqa, uint8_t sak, bool wantSaveToEmlFile);\r
+int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile);\r
+\r
+int isTraceCardEmpty(void);\r
+int isBlockEmpty(int blockN);\r
+int isBlockTrailer(int blockN);\r
+int loadTraceCard(uint8_t *tuid, uint8_t uidlen);\r
+int saveTraceCard(void);\r
+int tryDecryptWord(uint32_t nt, uint32_t ar_enc, uint32_t at_enc, uint8_t *data, int len);\r