added destroy

This commit is contained in:
Oleg Moiseenko 2018-02-10 23:28:15 +02:00
parent dca8220f72
commit e0158d3373

View file

@ -377,5 +377,7 @@ bool NestedCheckKey(uint64_t key, TAuthData *ad, uint8_t *cmd, uint8_t cmdsize)
memcpy(buf, cmd, cmdsize);
mf_crypto1_decrypt(pcs, buf, cmdsize, 0);
crypto1_destroy(pcs);
return CheckCrc14443(CRC_14443_A, buf, cmdsize);
}